Subject: RE: [xsl] 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Selecting the first item , Michael Kay | Thread | RE: [xsl] Selecting the first item , Sanjukta Mitra |
RE: [xsl] Formatting XML output, cknell | Date | RE: [xsl] Formatting XML output, Florent Georges |
Month |