OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

preceding/following sibling -- XSL snippet



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>
   &#160;
  < /xsl:for-each>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com