Name

$default-language — Default language.

Parameter:
{}default-language
Defined in:
modules/gentext.xsl
Used in:
modules/gentext.xsl, modules/functions.xsl
Used by:
f:language(), f:l10n-language()

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, the $default-language is used instead.