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

[newbie] What is the problem with preceding::simplesec

Subject: [newbie] What is the problem with preceding::simplesect/@id ?
From: Thomas Dupouy <moz@xxxxxx>
Date: Mon, 25 Feb 2002 09:27:09 +0100
what is preceding
Hello,
I'm new to xslt, and there are some problems I cannot understand. This
one : two navigation links following "simple sections" of an XML
docbook.
<!-- ----------------------- start ---------------------- -->
<tr><td align="left" nowrap="0">
Previous:&#160;
 <a>
  <xsl:attribute name="href">
   <xsl:text>romans.php?book=</xsl:text>
   <xsl:value-of select="$filename"/>
   <xsl:text>&amp;section=</xsl:text>
   <xsl:value-of select="preceding::simplesect/@id"/>
  </xsl:attribute>
  <xsl:value-of select="preceding::simplesect/title"/>
 </a>	
</td><td align="right" nowrap="0">
Next:&#160;
 <a>
  <xsl:attribute name="href">
   <xsl:text>romans.php?book=</xsl:text>
   <xsl:value-of select="$filename"/>
   <xsl:text>&amp;section=</xsl:text>
   <xsl:value-of select="following::simplesect/@id"/>
  </xsl:attribute>
  <xsl:value-of select="following::simplesect/title"/>
 </a>
<!-- ----------------------- end ---------------------- -->
The problem is that if the "Next" link go well to the following
simplesect, and through chapters, the "Previous" link always give the
first simplesect of the current chapter, instead of just the preceding
simplesect. I'm using PHP4+Sablotron if it makes a difference.

Thanks in advance for your solutions.

Regards,

--  
Thomas Dupouy
moz@xxxxxx

"J'ai lu dernièrement une préface (la préface de Mademoiselle La
Quintinie) où elle prétend qu'un vrai chrétien ne peut pas croire à
l'Enfer. Elle a de bonnes raisons pour vouloir supprimer l'Enfer."

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.