Docbook xsl stylesheets

When text is being generated, the stylesheet checks the most recent lang attribute and looks up the generated text strings for that language in a localization XML file. If the changes you want are more extensive than what is supported by variables, you can write new templates. It is beyond the scope of this document to cover how all of them are used in the DocBook stylesheets.

Uploader: Zulkibar
Date Added: 23 November 2011
File Size: 64.55 Mb
Operating Systems: Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X
Downloads: 76707
Price: Free* [*Free Regsitration Required]





EPUB support is currently experimental.

Starting at the top level in the main file docbook. A stylesheet consists of a mixture of output samples with instructions of what to put in each sample. That means a stylesheet specifies a sample of the output, not a sequence of programming steps to generate it. For example, to indicate that some text should be kept in-line and typeset cocbook a monospace font, it might look like this: DocBook XSL's stylesheets are highly configurable.

The value of either can be supplied in two ways. Retrieved from " https: The DocBook stylesheets include features for localizing generated text, that is, printing any generated text in a language other than the default English.

One reason to do this is to speed up processing by reducing the size of the stylesheet. Here are two examples from DocBook: However, because the DocBook stylesheets are big and use many file modules, this process uses a lot of network bandwidth and greatly slows down the processing of your documents. PassiveTeX from Sebastian Rahtz http: Any subsequent declarations of the same element or entity are ignored.

Languages, characters and encoding Document encoding Output encoding Saxon output character representation Special characters Special characters in output Space characters Missing characters Language support Using the lang attribute Using language parameters Language codes Extending the set of languages Text direction Chapter The value of the first example is the text node "1" and is supplied as the content of the element.

The power of XSL comes from processing the templates recursively. In general, all XSL processors have some built-in templates to handle any content for which your stylesheet doesn't supply a matching template. It is best used when assembling dissimilar templates that don't overlap what they match. Lists List titles List spacing List vertical spacing List horizontal spacing itemizedlist options Different bullet symbol Print properties for itemizedlist orderedlist options Different numbering style Number continuation List starting number Print properties for orderedlist variablelist options Multiple term elements Variable list formatting in print Variable list formatting in HTML simplelist options Chapter Then it just closes out the HTML file.

Your older siblings won't listen, neither will your parents or any of your ancestors. That single import instruction gives the new stylesheet the complete set of DocBook templates to start with.

DocBook XSL

It includes the formatting object language, but refers to separate documents for the transformation language and the path language. Here is one example of a redefined template: Generating a formatting objects file is only half the process of producing typeset output.

Here a template named head. If the changes you want are more extensive than what is supported by variables, you can write new templates. With a good formatting backend, it is capable of producing high quality printed pages.

Installing the DocBook stylesheets

You'll need to be careful to maintain the precedence that you want as the modules get rolled up into a complete stylesheet. Any passed parameters whose names are sty,esheets defined in the called template are ignored.

Modes let you process the same input more than once in different ways. If you define it in only your document root element, then it applies to the whole document: You generate formatting objects from your DocBook XML files by applying the fo version xsp the stylesheets.

XSL actually provides two inclusion mechanisms: Using stylesheet parameters Parameters on the command line Parameters in a file Chapter 7. The precedence rules for import are detailed and rigorously defined in the XSL standard.

4 thoughts on “Docbook xsl stylesheets

Leave a Reply

Your email address will not be published. Required fields are marked *