You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Steve Fisher <S....@rl.ac.uk> on 2000/02/08 14:50:50 UTC

Section numbering in XSL for DocBook 1.7

I am getting different results with xalan and XT

With a doc of type article the first sect2 inside the first sect1 is
numbered 11. instead of 1.1 
 
This is true for both .fo and .html

See:

http://hepunx.rl.ac.uk/~fisher/dax/test/index.xml

which results in:

http://hepunx.rl.ac.uk/~fisher/dax/test/index.html

where you will see 21 and 22 instead of 2.1 and 2.2

the customisation (the HTML one) is just:

<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:fo="http://www.w3.org/1999/XSL/Format"
                version='1.0'>

<xsl:include href="../docbook/html/docbook.xsl"/> 

<xsl:variable name="section.autolabel" select="true()"/>
<xsl:variable name="section.label.includes.component.label"
select="true()"/>
<xsl:variable name="html.stylesheet">style.css</xsl:variable>
</xsl:stylesheet>

There are 3 significant differences where the first is from XT and the
second from xalan:

< <dt>2.1 <a href="#N2606">Apache XML</a>
---
> <dt>21 <a href="#N116">Apache XML</a>

where a sect2 is numbered 21 instead of 2.1

At table has the keyword Table missing from its title:

< <a name="N2666"><b>Table 1. Tool and version</b></a>
---
> <a name="N195"><b> 1. Tool and version</b></a>

and a xref generates poor information:

<       explained in <a href="#installing">Section 2.3</a>, then you may
run a
---
>       explained in <a href="#installing"> 23</a>, then you may run a

Steve