[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] trouble with preceding axis
Subject: Re: [xsl] trouble with preceding axis From: Florent Georges <darkman_spam@xxxxxxxx> Date: Wed, 4 Jan 2006 11:14:15 +0100 (CET) |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] trouble with preceding ax, Duane Gran | Thread | [xsl] XSL transform to HTML when el, Tusler, Dylan |
Re: [xsl] XSL transform to HTML whe, andrew welch | Date | Re: [xsl] Restricting the scope of , Peter Flynn |
Month |