[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook] XSL - Getting the Chapter number
Hi John,
First, if you are using the -ns- namespaced
stylesheets with DocBook 5 documents, make sure that all instances of element
names in your customization layer have the docbook namespace prefix, otherwise
they won't match on your elements. So if it currently has "chapter", it
should be changed to "d:chapter" with the namespace declaration at the
top.
Without further review, it is hard to say why
position() no longer works. That can be a tricky function to use, as
described in this recent email exchange:
The DocBook stylesheets include a number of utility
templates, including those for numbering elements. They use
mode="label.markup", and simply return the number of the element. You can use
something like this in a template matching on d:chapter:
<xsl:apply-templates select="."
mode="label.markup"/>
See this reference for more on the utility
templates:
|
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]