On Wed, 9 Feb 2011 09:03:48 -0800
"Bob Stayton" <
bobs@sagehill.net> wrote:
> Hi Dave,
> In the stylesheets, the code that generates the number labels is in
> common/labels.xsl, using mode="label.markup". See, for example, the
> template:
>
> <xsl:template match="chapter" mode="label.markup">
>
> Bob Stayton
> Sagehill Enterprises
>
bobs@sagehill.net>
>
> ----- Original Message -----
> From: "Dave Pawson" <
davep@dpawson.co.uk>
> To: <
rob.cavicchio@emc.com>
> Cc: <
docbook-apps@lists.oasis-open.org>
> Sent: Wednesday, February 09, 2011 8:16 AM
> Subject: Re: [docbook-apps] RE: db5, chapter markup, xsl-fo processing
>
>
> On Wed, 9 Feb 2011 09:40:30 -0500
> <
rob.cavicchio@emc.com> wrote:
>
> > I asked this question not long ago on the "docbook" list:
> >
> >
http://markmail.org/message/2xe65grhyv5jnpfj?q=label+list:org.oasis-open.lists.docbook>
>
> Thanks Rob.
> From Bob
> "As far as the DocBook XSL stylesheets go, the @label attribute is
> treated as a manual override for the generated *number* for a section,
> table, figure, etc. It is just the number part, as in "1-1". "
>
>
> My problem is that this override isn't documented and I couldn't find
> the code in the stylesheets.
>
> I have a requirement to put (lower case) Chapter X
> where x is the generated chapter number.
> #fail on all accounts ;-)
>
>
> Rethink called for.
I've reverted to numbering them, though is it reasonable to ask
for 'Chapter nnn' as a 'label', without using @label?
If you think so, I'll file an rfe.
Though the documentation for the param needs an explanation
of the override IMHO?
--
regards
--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk