Docbook Question

This should cover W3C XML Schema, Relax NG and DTD related problems.
TimP
Posts: 7

Docbook Question

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.
sorin_ristache
Posts: 4144

Re: Docbook Question

Tue Jul 01, 2008 12:13 pm

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

Return to “XML Schemas”

Who is online

Users browsing this forum: No registered users and 2 guests