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

Is it possible to reference the previous and next elem

Subject: Is it possible to reference the previous and next elements inside a for-each
From: Ian Lang <ianplang@xxxxxxxxx>
Date: Sun, 11 Apr 2004 23:04:56 -0700 (PDT)
xsl previous element
I am working on a navigation bar for my output HTML. 
When executing a for-each like this:
  <xsl:for-each select="//eltag[@type='subtype']">
    <xsl:sort select="@name"/>

Inside the for each I want to generate my HTML and
pass to it the previous and next element for the
navigation bar to link to:
  <xsl:apply-templates mode="createtContent"
select=".">
    <xsl:with-param name="prevEl" select="!some
expression here that references the previous element
in the for each's list!"/>
    <xsl:with-param name="nextEl" select="!some
expression here that references the next element in
the for each's list!"/>
  </xsl:apply-templates>
...

Any advice would be appricated,

IL

__________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html

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.