Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XSL-T in IE (JScript)

From: "Neil Smith [MVP Digital Media]" <neil@------.--->
To: NULL
Date: 6/3/2005 10:39:00 AM
On Fri, 3 Jun 2005 11:15:07 +0200, "Petar Popara" <my.fake@m...>
wrote:

>
>I've tried this, but it doesn't work:
>
>var xmlDOM, xslDOM, t;
>
>xmlDOM = testxml.XMLDocument;
>if (xmlDOM == null) alert("xmlDOM == null");
>
>var t = xmlDOM.selectSingleNode("//Transformation");
>if (t == null) alert("t == null");
>
>var s = t.text;
>alert("XSLT: " + s); //s == empty string here :(
>
>xslDOM = new ActiveXObject("MSXML.DOMDocument");
>xslDOM.load(s);
>
>divResults.innerHTML = xmlDOM.transformNode(xslDOM);
>
></script>
></html>
>
>Why s is empty string? :( 

S is 'empty' because the 'Transformation' node contains no text, only
other nodes.

You meant to alert(s.xml); rather than alert(s.text); to show the node
tree as a human-readable string value. 

Cheers - Neil



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent