Re: Axis order and variables
Ken wrote: > Alexander Gutman wrote: >>I have run into this question because the result of MSXML 3.0 and >>Saxon differs from that of MSXML 4.0: the former give "1", while the >>latter gives "2". Who is right? Or they are both right? > > If what you say is true, then MSXML 4.0 is not producing the result > according to XSLT 1.0. I'm running IE6 which, I thought, was running > MSXML 4.0 and yet I get the correct answer. IE6 uses MSXML3 rather than MSXML4 (unless you invoke your transformation through a script). As Alexander says, MSXML4 gives the wrong answer. It gives the right answer if you do: <xsl:value-of select="(ancestor::x)/@n" /> so the fact it gives the wrong answer when $x is used instead is particularly peculiar. Cheers, Jeni --- Jeni Tennison http://www.jenitennison.com/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format