Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / JavaScript / March 2006



Tip: Looking for answers? Try searching our database.

Using Sarissa transformToDocument()

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
scot.haynes@ukgateway.net - 30 Mar 2006 23:36 GMT
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.getDomDocument();
xml.async = false; //Load my xml file containing many child Country
elements.
var objNodeList = xml.getElementsByTagName("Country");
var myxsl = Sarissa.getDomDocument();
myxsl.async = false;
//Now load the stylesheet
myxsl.load('GeodessaRateCalc.xsl');
//Now create a new xslt processor
var processor = new XSLTProcessor();
processor.importStylesheet(myxsl);
processor.setParameter(null,"SourceCountry","England");
var ratesHTML = processor.transformToDocument(xml);
rateResult.innerHTML = Sarissa.serialize(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?
Thomas 'PointedEars' Lahn - 31 Mar 2006 00:21 GMT
> [3 Sarissa problems, similar text]
> Does anyone have a suggestion as to how I can
> get this code to work properly in Firefox?

RTFM.

PointedEars
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.