[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: trouble with preceding axis
Duane Gran wrote: > Thank you. Actually, using your example I was able to > make it work with the following: > /root/orange/preceding-sibling::*[1] You're right. --drkm > This works on my real data, but I worry a little if > this is syntax works for more complex cases. I can't > thank the group enough for the kind pointers on XPath. > Duane > On Jan 3, 2006, at 6:43 PM, Xia Li wrote: > > You might select the nearest preceding sibling like this, > > <xsl:for-each select="/root/orange/preceding-sibling::*"> > > <xsl:if test="position() = last()"> > > <xsl:value-of select="name(.)"/> > > ... > > </xsl:if> > > </xsl:for-each> > > Hope this is what you want. > > Lisa ___________________________________________________________________________ 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
|