On Fri, Feb 21, 2003 at 12:41:05AM +0100, Terje J. Hanssen wrote:
I am searching to find out how to possibly customize (extend) the
DocBook DTD and XSL stylesheet to apply it on my XML documents/ebook. I
need to structure the text content with my own defined additional XML
elements and attributes, to prepare it for smart content search.
I have looked in chpt 4 and 5 of 'DocBook: The Definitive Guide', the
article on xml.com and the DocBook XSL stylesheet docs. But I feel I
need some simple examples and/or advices to clarify, especially
regarding extending the DTD with a few additonal XML elements and
attributes.
Do you know how or possible where I can find additional info/docs on
this area?
My site (www.sagehill.net) has two additional resources
that might help you.
- LiveDTD is a tool for converting a DTD to a hypertext
document. It lets you jump around the DocBook DTD to
see where something is declared. I wrote it specifically
to maintain my sanity while creating a customized DocBook
DTD. In the Demonstration section, there is an example
of a customized version of DocBook 3 that you can examine.
You can download the livedtd.pl Perl script and apply
it to your own DTD as you develop it.
- A slide presentation "Customizing the DocBook DTD" that
I presented at an O'Reilly conference. It covers much
the same territory as The Definitive Guide. But the key
pages are "Order is important", which indicate in which
modular docbook file to make specific kinds of changes.