Thanks guys, I've been pulling my hair out over this one!
----- Original Message -----
From: "S Woodside" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, February 22, 2003 6:36 PM
Subject: Re: [Slightly OT] XSL weirdness
Yeah that killed me too... perhaps it is more correct to say that "."
is scoped to the XPath statement, while current() is scoped outside the
XPath statement.
simon
On Saturday, February 22, 2003, at 07:01 AM, J�rg Walter wrote:
> The correct usage is: select="/selections/regions/*[id=current()]"
> (The reason being, the 'context' node (".") changes with each "/",
> while XSLT
> maintains a separate 'current' node, which only changes on
> apply-templates or
> inside for-each. Consequently, the behaviour you observe is correct.)
>
--
anti-spam: do not post this address publicly
www.simonwoodside.com -- 99% Devil, 1% Angel
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]