This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: [docbook] theorems and similar things
Am Mittwoch, 15. September 2004 21:56 schrieben Sie:
> Hi Wolfgang,
>
> Extending the DocBook XSL stylesheets to handle new elements is pretty
> straightforward. The stylesheets are designed to be customized without
> editing the original stylesheet files. You create a customization layer
> that has only your customizations and uses the stock stylesheet for
> everything else.
Hello,
that sounds very good.
> Because the stylesheets are driven by templates, you should find an element
> that is handled in a manner similar to the way you want your new elements
> to be handled. Then find the XSL template that processes that element and
> copy it to your customization file. Then you change the 'match' attribute
> so it applies to your new element, and make any changes to the body of the
> template to format it the way you want. You'll want to make use of the
> xsl:number instruction to number your theorems. Keep a good XSLT reference
> handy. 8^)
>
> See this reference for how to get started with a DocBook XSL customization:
>
> http://www.sagehill.net/docbookxsl/CustomMethods.html
Thanks for your information. When I have time, I may give a MathBook (incl.
stylesheets) implementation a try. :-)
> Bob Stayton
> Sagehill Enterprises
> DocBook Consulting
> bobs@sagehill.net
Wolfgang