Re: section "label" attribute not producing label

Bob Stayton <[email protected]>
Newsgroups gmane.text.docbook.apps
Message-ID <[email protected]>
If you are just getting started with DocBook, I would recommend my free 
online book "DocBook XSL: The Complete Guide".  In this section of the book:

http://www.sagehill.net/docbookxsl/SectionNumbering.html

it says that "To turn on basic section numbering, set the 
/|section.autolabel|/ parameter to 1".  Stylesheet parameters can be set 
on the command line or in an XSL customization layer as described 
elsewhere in the book.

Once section numbering is turned on, the @label value on a sect1 element 
will override the default number.

Bob Stayton
[email protected]

On 9/25/2019 11:41 AM, Brendan Martin wrote:
>
> Hi,
>
> IÂ’m entirely new to DocBook and am trying to use it in OxygenÂ’s XML 
> Editor (v. 21). IÂ’m trying to convert a clientÂ’s native XML to DocBook 
> for use.
>
> I have a document with <sect1> as a root element and subsections and 
> the @label attribute does not work:
>
>  1. In Oxygen Author mode section labels are prefixed with the label
>     of the component that contains them (I want to turn that off),
>     plus the actual @label value is ignored (autonumbering takes
>     over), e.g., <sect1 label=”Chapter 6”> appears in Oxygen as
>     “Section 1:”
>  2. In PDF the @label value is simply ignored.
>
> Any help is appreciated. Thanks.
>
> Regards,
>
> Brendan Martin
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.