This is a patch for all output formats of DocBook XSL
for the
Request ID : 1178038
Title : chapter (and other?) numbering customizable
Customization provide following parameter behavior changes:
* chapter.autolabel - Are chapters automatically
enumerated?
* appendix.autolabel - Are Appendixes automatically
enumerated?
* part.autolabel - Are parts and references enumerated?
* preface.autolabel - Are prefaces enumerated?
* qandadiv.autolabel - Are divisions in QAndASets
enumerated?
* section.autolabel - Are sections enumerated?
In this cusotmiztion above parameters can have values
either 0 or any format (a, A, i, I, 1). If parameter is
provided value 0 then element will not be enumerated.
If any other values (a, A, i, I, 1) are provided it
will be used as format for that element enumeration.
Also the text values like 'loweralpha', 'upperalpha',
'lowerroman', 'upperroman', and 'arabic' are supported
for *.autolabel parameters.
Patch file for docbook-xsl-1.68.1\common\label.xsl file
Logged In: YES
user_id=193218
Hi Anup, this code looks good. Thanks for contributing it.
But I can't check it in yet, because it doesn't work in
xsltproc! Using any value other than 1 causes autolabeling
to be turned off completely. But I think the problem is in
xsltproc, in the way it converts data types. I sent a message
to their list, so I'll let you know what I find out.
Logged In: YES
user_id=193218
I went ahead and checked this patch in after adding a small
workaround for xsltproc's bug (see libxslt bugzilla 309914).
I'll also update the reference pages for these parameters.
Logged In: YES
user_id=193218
A fix for this issue has been added to the current codebase.
Please test the fix with the latest snapshot from:
http://docbook.sourceforge.net/snapshots/