Subject: RE: Selecting the first item from a tokenized string
From: Florent Georges <darkman_spam@xxxxxxxx>
Date: Fri, 13 Jan 2006 16:55:45 +0100 (CET)
|
Michael Kay wrote:
> You can't do
> <xsl:for-each select="/e/itemref">
> <xsl:value-of select="/f/item[@nr]"/>
> because the context inside the predicate is wrong.
> But you can do
> <xsl:for-each select="/e/itemref">
> <xsl:value-of select="subsequence(/f/item, @nr, 1)"/>
Yes. The current XPath node, part of the static context, is
obviously not the same for the two "@nr" expressions. Actually, I
misunderstood your initial sentence.
Sorry for the noise, amd thanks for the response,
--drkm
___________________________________________________________________________
Nouveau : tiliphonez moins cher avec Yahoo! Messenger ! Dicouvez les tarifs exceptionnels pour appeler la France et l'international.
Tilichargez sur http://fr.messenger.yahoo.com
| Current Thread |
|
Florent Georges - 13 Jan 2006 15:55:39 -0000 <=
Sanjukta Mitra - 13 Jan 2006 17:58:03 -0000
|
|