I am trying to create a simple bit of navigation to put on the right of my page so there will be a link to the next article. I have got this bit right but am having trouble with the final article, where I want it to point to the first article rather than the last one. The problem is arising because I have three 'section's in my document. Therefore chapter 1 could refer to chapter 1 in either three of these sections. Each section has a title which is how I am trying to differentiate it in this code. Therefore, I am trying to find chapter 1 of the section with title 'Features'.
Code: Select all
<xsl:when test="position() = last()">
At the moment this code produces the title for all chapter 1's in the document. I think for it to work I need to include both '//chapter[position()=1]/title' and '../title='Features'' in the same value-of. How would I go about doing this?