docbook-apps

Re: [docbook-apps] Preface sub sections not formatting as Roman Numerals

  • 1.  Re: [docbook-apps] Preface sub sections not formatting as Roman Numerals

    Posted 07-11-2008 16:46
    Bob Stayton wrote:
    > This would require a customization of the template named
    > "autolabel.format" which can be found in common/labels.xsl. That
    > template uses an xsl:choose to compute the format string based on the
    > parameter values. You could customize it by adding an extra xsl:when
    > condition:
    >
    > ...
    > <xsl:choose>
    > <xsl:when test="string($format) != 0">
    > <xsl:choose>
    > <xsl:when test="ancestor::preface and $preface.autolabel =
    > 'I'">I</xsl:when>
    > <xsl:when test="string($format)='arabic' or
    > $format='1'">1</xsl:when>
    > ...
    >
    > I added the first xsl:when to select "I" when the ancestor is preface.

    Thanks, Bob, I figured it was going to be customization, just wasn't
    sure where I need to set it.

    Dave