xsl-list
[Top] [All Lists]

Is it possible to reference the previous and next elements inside a for-each

2004-04-11 23:04:56
I am working on a navigation bar for my output HTML. 
When executing a for-each like this:
  <xsl:for-each select="//eltag[(_at_)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


<Prev in Thread] Current Thread [Next in Thread>