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: DOCBOOK-APPS: Strange enumeration with XSL HTML stylesheets

Hi Norm, hi list,

I'm not sure if this is a bug or not as I don't understand the
architecture and the parameters of the XSL HTML stylesheets yet.

I'm using Docbook XML 4.1, XSL Stylesheets 1.13, Xalan 1.0.1, Xerces

I want to transform the following document into HTML:

  <title>A book</title>
    <title>A chapter</title>
      <title>1st level section A</title>
      <title>1st level section B</title>
	<title>2nd level section</title>

This results in a section enumeration like

        1. A chapter 
        1.1. 1st level section A 
        1.2. 1st level section B 2nd level section 

where the 2nd level section in my opinion should be numbered 1.2.1.
instead of

I looked through the XSL stylesheets but somehow got lost on the
way. BTW, is there some method to create some HTML documentation out
of the <doc:*> tags in the stylesheets?

I use a customized stylesheet that looks as follows:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

  <xsl:output doctype-public="-//W3C//DTD HTML 4.0 Strict//EN"
              method="html" encoding="iso-8859-1"
              omit-xml-declaration="yes" indent="yes"/>

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

  <xsl:variable name="chapter.autolabel">7</xsl:variable>
  <xsl:variable name="section.autolabel">8</xsl:variable>
  <xsl:variable name="section.label.includes.component.label">9</xsl:variable>

  <xsl:variable name="html.stylesheet">http://xml.niedermann.bb.bawue.de/default.css</xsl:variable>
  <xsl:variable name="html.stylesheet.type">text/css</xsl:variable>


Does anybody know where the error is located? In front of the
keyboard, within the Xalan engine, within the XSL stylesheets?

Any help is appreciated. Thanks in advance,


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

Powered by eList eXpress LLC