[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Selecting the first item from a tokenized string
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
|
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
|