[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
preceding/following sibling -- XSL snippet
- From: Mattio Valentino <xmlhack@hotmail.com>
- To: xml-dev@lists.xml.org
- Date: Tue, 10 Apr 2001 19:28:55 +0000
Sorry. The XSL code seems to have been cut off on some messages.
< xsl:for-each select="//section[@ID=$id]">
< a>
< xsl:attribute name="href">http://localhost:8080/xml/eyes.jsp?id=<
xsl:value-of select="preceding-sibling::section/@ID" /></xsl:attribute>
< xsl:attribute name="class">dark</xsl:attribute>
Previous Section</a>
|
< a>
< xsl:attribute name="href">http://localhost:8080/xml/eyes.jsp?id=<
xsl:value-of select="following-sibling::section/@ID" /></xsl:attribute>
< xsl:attribute name="class">dark</xsl:attribute>
Next Section</a>
 
< /xsl:for-each>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com