[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: trouble with preceding axis

Subject: Re: trouble with preceding axis
From: Florent Georges <darkman_spam@xxxxxxxx>
Date: Wed, 4 Jan 2006 11:14:15 +0100 (CET)
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.