473,847 Members | 1,445 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using Sarissa transformToDocu ment()

Can anyone help me with the following problem I'm having using the
Sarissa parser. I am running the following java script

var xml = Sarissa.getDomD ocument();
xml.async = false; //Load my xml file containing many child Country
var objNodeList = xml.getElements ByTagName("Coun try");
var myxsl = Sarissa.getDomD ocument();
myxsl.async = false;
//Now load the stylesheet
myxsl.load('Geo dessaRateCalc.x sl');
//Now create a new xslt processor
var processor = new XSLTProcessor() ;
processor.impor tStylesheet(myx sl);
processor.setPa rameter(null,"S ourceCountry"," England");
var ratesHTML = processor.trans formToDocument( xml);
rateResult.inne rHTML = Sarissa.seriali ze(ratesHTML);

For some reason in all browsers ratesHTML is not being populated. I
know that my stylesheet and xml document work using MSXML2 parser
functionality in IE.

Does anyone have a suggestion as to how I can get this code to work
properly in Firefox?

Mar 30 '06 #1
1 3567
sc*********@ukg ateway.net wrote:
[3 Sarissa problems, similar text]
Does anyone have a suggestion as to how I can
get this code to work properly in Firefox?

Mar 30 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: rawCoder | last post by:
Hi All, I have a *.cer file, a public key of some one and I want to encrypt some thing using this public key. Can someone point me to a sample code for Encrypting some file using X509Certificate ( *.cer file ) so that it can be used to email as attachment. The real part is Encrypting using X509Certificate and CryptoServiceProvider.
by: Mike | last post by:
When trying to compile (using Visual Web Developer 2005 Express Beta; frameworkv2.0.50215 ) the source code below I get errors (listed below due to the use of ICallBackEventHandler. Ultimately I want to use a callback from the client side to update webcontrols based on user input without using postback. I am seeking a way to stop the compile errors. using System; using System.Data;
by: adam | last post by:
Hi, I'm building a tree control that lazily loads branches of the tree using the document.load() method. The external XML document that is loaded is generated by a servlet as XHTML. What I would like to do is to add the new tree branch to the correct place in the document in the browser window using the innerHTML property of the parent node.
by: Arun | last post by:
I am trying to build a site using xmlhttprequest, so that the browser never reloads. I want to pass the HTML info of the "navigation column" , "content column" as a XML page from the server. >From the help on the net, I have managed to use xmlhhtprequest succesfully to get the file from server and parse the XML. But I dont know how to display the HTML info on the page. When I just add the parsed HTML content from the xml to a <div>, it...
by: Christoph | last post by:
Hello, I found the following XHTML document for testing sarissa's XPath implementation at http://sarissa.sourceforge.net/doc/. I replaced "Sarissa_0-9b3.js" in the test document below by "sarissa.js" from sarissa0.9.6.1. Loading the document Firefox replies "XML filtering predicate operator called on incompatible XMLDocument". What's wrong? Thanks in advance, Christoph
by: rizjabbar | last post by:
I have a memory leak happening... I believe it is due to Dom parser... could anyone help me with this: Do I need a delete??? /////////////////////////////////////////////// //Code on Main HTML page: <html> <head> <SCRIPT LANGUAGE="JavaScript" SRC="Engine.js" ></SCRIPT> <SCRIPT LANGUAGE="JavaScript" SRC="Sarissa.js" </SCRIPT> </head>
by: Jonny B | last post by:
Hi all, I'm working on an a clientside xslt using jscript that passes a parameter to the xsl. I've got it working no problem in IE but cant get it to work in Mozilla. Can anyone help? This is my IE code - <html> <head> <title>CEL Learning</title>
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.