This is the mail archive of the mailing list .

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Transforming using Javascript's documentElement

I'm not sure if this has been asked before... but can anyone please tell me
why sometimes fXML.documentElement returns a null and sometimes it doesn't?
this is the javascript code I have:

	function writeToPage(xsl1, xsl2)

cumentElement always have problems

<xml id="qXML" src="TotalQuotesPolicies.xml"></xml>
<xml id="gpXML"></xml>
<xml id="fXSL"></xml>

I'm trying to transform the XML twice with 2 different XSLs. And when I
directly put in the 
<?xml-stylesheet type="text/xsl" href="saBySALogin2.xsl"?>
line in the XML, the transformation works fine, but when trying to use that
javascrit code above, at times it works and at times it doesn't. I know it
is due to the fXML.documentElement return null and the
transformNodeToObject() and the transformNode() returns an error when that
happens... is there a way around it? or a substitute for the
documentElement? or am I doing something wrong?

thank you!


 XSL-List info and archive:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]