I am currently moving a 4.2 docbook file at work to use docbook 5.0 and I am
nearly finished, though I have stumbled on a problem.

The problem I have is with a custom style sheet that is used at work, it
made used to an old version of the docbook-xsl files that are found at the
sourceforge, and when I updated the 4.2 xml file I downloaded the latest
version of the docbook-xsl-ns files and started to change the custom xsl
sheet to work.

The custom style sheet in question is used to translate the xml file into
the fo format so that it can be converted to a pdf document.  At one point
in the custom xsl sheet the original author stuck in a call to the
position() function in a chapter template to get the current chapter number
for a page header.

Though the use of position() does not appear to work after the update with
the chapter numbers for that page header start with 2 instead of 1.

This actually doesn't affect the other instances of the where the chapter
number is used, like in the pdf's bookmarks or the table of contents, which
leads me to believe that there must be some method in the docbook-xsl-ns fo
files that can be used to to get the current chapter number, as opposed to
ending up using "position()-1"


Any ideas?
-- 
John

Reply via email to