Karakas Online

11.9. DSSSL stylesheet localization

As distributed, the stylesheets use English for all generated text, but several other localization files are also provided.

Switching localizations is achieved by writing a customization layer that references the proper localization file. The customization should look like this:

<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
<!ENTITY dbstyle PUBLIC "-//Norman Walsh//DOCUMENT DocBook Print Stylesheet//EN" CDATA DSSSL>
<!-- The path to the l10n file must be correct, of course, and should -->
<!-- point to the print/html directory as appropriate for the preceding -->
<!-- dbstyle -->
<!ENTITY l10n    SYSTEM "docbook/print/dbl1dege.dsl" CDATA DSSSL>
]>
<style-sheet>
<style-specification use="l10n docbook">
<style-specification-body>
;; Additional customization here, if desired
</style-specification-body>
</style-specification>
<external-specification id="docbook" document="dbstyle">
<external-specification id="l10n" document="l10n">
</style-sheet>

Where dbl1dege.dsl is the name of the localization file you wish to use (German in this example). See Customizing the Stylesheets.

Last updated Mon Sep 24 01:19:25 CEST 2007 Permalink: http://www.karakas-online.de/mySGML/dsssl-stylesheet-localization.html All contents © 2002-2007 Chris Karakas