OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: Re: DOCBOOK-APPS: XSL: sect3 labels


> From: Jon Willeke <willeke@intersys.com>
> 
> I'm using version 1.18 of Norm's XSL stylesheets with DocBook XML 
> 4.1.2.  My customization layer contains the following parameter:
> 
>    <xsl:variable name="section.autolabel">1</xsl:variable>
> 
> I converted a document to HTML and got section labels like this:
> 
>    1
>    1.1
>    1.11
> 
> The last instance should be 1.1.1.  The last time I converted this document 
> was 20 June, with version 1.13 of the stylesheets, and it worked 
> fine.  Perhaps Norm's fix on 17 July for Hans Ulrich Niedermann broke it?

This is a bug in the file common/common.xsl
in DocBook XSL 1.18.  Norm rewrote the autonumbering
code somewhere between 1.13 and 1.18, and there is
a line missing to output the punctuation separator
for sect2 through sect5.

If you want to fix your copy of common.xsl,
here is the diff in context:

*** common.xsl     Thu Sep  7 14:15:31 2000
--- common.xsl.fixed  Thu Sep  7 14:16:40 2000
***************
*** 604,609 ****
--- 604,610 ----
          <xsl:message>label.content: this can't happen!</xsl:message>
        </xsl:otherwise>
        </xsl:choose>
+       <xsl:value-of select="$punct"/>
      </xsl:when>
    </xsl:choose>
  </xsl:template>

In other words, add "<xsl:value-of select="$punct"/>"
after line 606 in common.xsl (version 1.18).

Norm is on vacation, so presumably this will get fixed
when he gets back.

bobs
Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
The Santa Cruz Operation, Inc.              fax:   (831) 429-1887
                                            email: bobs@sco.com


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC