Subject: Re: 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 |
Xia Li - 4 Jan 2006 00:09:42 -0000
- Duane Gran - 4 Jan 2006 02:07:06 -0000
- Florent Georges - 4 Jan 2006 10:34:23 -0000 <=
|
|