Docbook Question

This should cover W3C XML Schema, Relax NG and DTD related problems.
Posts: 7
Joined: Mon Jun 30, 2008 9:52 pm

Docbook Question

Post by TimP » Mon Jun 30, 2008 9:59 pm

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.

Posts: 4144
Joined: Fri Mar 28, 2003 2:12 pm

Re: Docbook Question

Post by sorin_ristache » Tue Jul 01, 2008 12:13 pm


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.


Post Reply