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

RE: Loop

Subject: RE: Loop
From: "Tim Watts" <timw@xxxxxxx>
Date: Thu, 30 Aug 2001 14:03:44 +1000
xsl value of current node
Carlos,

I don't know exactly what you mean by verify?  Do you want to ensure it is
not a null value, or if it is text or a number?

Still, here is the X-path that should give the value-of each 'test'.  I will
leave it to you to explain exactly what you mean by "verify"

<xsl:for-each select="test">
  <xsl:value-of select="."/>
  <xsl:value-of select="preceding-sibling::*[1]"/>
</xsl:for-each>

Hope that helps in some way,

Tim

PS.
you may want to use
<xsl:value-of select="preceding-sibling::*[1][self::test]"/>
to ensure that the value of the precedeing-sibling was a 'test' node

> -----Original Message-----
> From: Carlos Durand Silvestrin
>
>  I want to construct one loop that verify the current node
> and the previous
> node like this:
>
> <xsl:for-each select="test">
>
> verify the value of current node
> verify the value of previous node
>
> </xsl:for-each>
>
> thanks!!
>
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.