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

Help with perious ancestor element in loop

Subject: Help with perious ancestor element in loop
From: Andrey Solonchuk <solo@xxxxxxx>
Date: Fri, 11 Feb 2005 16:52:56 +0200
perious
Hi all.

Help me please to understood how to be;

i have xml -
<root>
   <val>5</val>
   <val>3</val>
   <val>1</val>
   <val>2</val>
   <val>4</val>
</root>

   <xsl:for-each select="val">
   <xsl:sort select="." data-type="number" order="ascending"/>
      <xsl:value-of select="following-sibling::*[1]/text()"/>
      <xsl:text>|</xsl:text>
   </xsl:for-each>

in xsl i have loop that reordering nodes and work with them.
in loop I want to know previous and next element of the loop order,
in another words previous and next element in nodelist with what work
<xsl:for-each ...

But when i use following-sibling:: axis or another axises it use
original xml but not the nodeset from for-each_select
.

Suggest me, please, how to previous and next element of the loop.

P.S.
Sorry for bad English.

-- 
Best regards,
 Andrey                            mailto:solo@xxxxxxx

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.