Subject: Re: Axis order and variables
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Fri, 23 May 2003 15:15:08 +0100
|
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)[1]/@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
| Current Thread |
- Axis order and variables
- gutman - Fri, 23 May 2003 09:17:04 -0400 (EDT)
- G. Ken Holman - Fri, 23 May 2003 09:48:46 -0400 (EDT)
- Jeni Tennison - Fri, 23 May 2003 10:15:19 -0400 (EDT) <=
- Michael Kay - Fri, 23 May 2003 13:43:04 -0400 (EDT)
- <Possible follow-ups>
- David Neary - Fri, 23 May 2003 09:42:28 -0400 (EDT)
- gutman - Fri, 23 May 2003 10:06:33 -0400 (EDT)
|
|