Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


different results with internet explorer vs. msxsl.exe

From: bd@------.--- (---- -----)
To: NULL
Date: 8/5/2004 11:41:00 AM
given this xml

<?xml version="1.0" encoding="iso-8859-1"?> 
<?xml-stylesheet type="text/xsl" href="vsimp.xsl"?> 
<document>
<s3>
data
</s3>
</document>

and this xsl

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
      <body><xsl:apply-templates/> </body>
</html>
</xsl:template>

<xsl:template match="s3">
            position: <xsl:value-of select="position()"/>
</xsl:template>
</xsl:stylesheet>


I get the following from msxsl.exe

prompt>msxsl vvsimp.xml -pi
 < h t m l >
 < b o d y >

                         p o s i t i o n :   2
 < / b o d y >
 < / h t m l >

but if I open vvsimp.xml with IE the page contains 

position: 1

(which is correct)

Given that I have up to date versions of the msxml parser (AFAIK) and
that msxsl.exe is advertised to be a shell around the same XML engine
that IE uses I see these results as a real head-scratcher.

(Boiled down from the more complex transformation where I originally
experience this.)

I hope its me. Any ideas or comments are welcome.

Thanks


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