docbook-apps

  • 1.  Re: [docbook-apps] RE: db5, chapter markup, xsl-fo processing

    Posted 02-09-2011 17:04
    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.

    regards DaveP


    >
    >
    > > -----Original Message-----
    > > From: Dave Pawson [mailto:davep@dpawson.co.uk]
    > > Sent: Monday, February 07, 2011 3:10 AM
    > > To: docbook-apps@
    > > Subject: db5, chapter markup, xsl-fo processing
    > >
    > >
    > > <chapter label='xxx'....
    > >


  • 2.  Re: [docbook-apps] RE: db5, chapter markup, xsl-fo processing

    Posted 02-13-2011 07:34
    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