Page 1 of 1

Docbook Question

Posted: Mon Jun 30, 2008 9:59 pm
by TimP
I've been messing with Docbook all weekend and I've finally found an XML tool (<oXygen/>, of course) that allowed me to get anywhere at all without extensive research and training. So, now that I can enter valid XML and transform it so easily into HTML and PDF (wow!) I'm wondering if anyone knows how to get headings to be numbered in docbook. Numbering figures and codeblocks would be pretty good too. I'm almost certain it can be done but I can't figure it out.

Re: Docbook Question

Posted: Tue Jul 01, 2008 12:13 pm
by sorin_ristache
Hello,

Figure titles, chapter titles and part titles are numbered automatically in the output of a DocBook transformation. Just set a title in the XML document for each figure and chapter with the <title> child element. If you want to number program listings you have to customize the DocBook stylesheets because the stylesheets do not provide support for numbering program listings.


Regards,
Sorin