$default-language

$default-language — Default language.

Parameter:
{}default-language
Defined in:
param.xsl
Used in:
param.xsl, modules/gentext.xsl, modules/functions.xsl, modules/chunk-cleanup.xsl
Used by:

Synopsis

  |$default-language := 'en'

Description

If the stylesheets need to generate text (the names of labels such as “Chapter”, for example), they attempt to do so in the same language as the document. This is determined by finding the nearast in-scope xml:lang attribute from the context where the generated text is required.

If there is no in-scope xml:lang attribute, or if there is no localization available for the language specified, the $default-language is used instead.