XML technologies / DocBook / The DocBook XSL stylesheets / Changing localization / Changing the default language
(Excerpt from "DocBook-XML: Media-neutral and platform-independent publishing" by Thomas Schraitle)
If no language is specified in a DocBook document, English is selected automatically. To change this behaviour, use the parameter l10n.gentext.default.language:
xsltproc --stringparam l10n.gentext.default.language "de" ...The previous example sets the language to German. You can also place this parameter in a customization file.
This approach is useful if you cannot modify the document or if no lang and xml:lang attribute is present. It is only appropriate for documents containing a single language.
Copyright © 2009 Millin Verlag
You may print the online version for your private use.
Otherwise, this chapter from "DocBook-XML: Medienneutrales und plattformunabhängiges Publizieren" is subject to the same provisions as the printed edition: the work, including all its parts, is protected by copyright. All rights are reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
Millin Verlag, Siebengebirgsring 36, 53797 Lohmar, info(at)millin.de
back to top