Module dev.metaschema.core
Class FnDefaultLanguage
java.lang.Object
dev.metaschema.core.metapath.function.library.FnDefaultLanguage
Implements the XPath 3.1 fn:default-language
function.
This function returns the default language from the static context. If no default language has been configured, "en" (English) is returned as the default value per the XPath 3.1 specification.
-
Method Summary
Modifier and TypeMethodDescriptionstatic IStringItemfnDefaultLanguage(DynamicContext dynamicContext) Implements fn:default-language.
-
Method Details
-
fnDefaultLanguage
Implements fn:default-language.Returns the default language from the static context. The default language is used by functions like fn:lang() when processing language-sensitive operations.
- Parameters:
dynamicContext- the dynamic evaluation context- Returns:
- the default language code as a string
-