Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: different results with internet explorer vs. msxsl.exe different results with internet explorer vs. msxsl.exeTo: 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
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
