Class FnDefaultLanguage

java.lang.Object
dev.metaschema.core.metapath.function.library.FnDefaultLanguage

public final class FnDefaultLanguage extends Object
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 Details

    • fnDefaultLanguage

      @NonNull public static IStringItem fnDefaultLanguage(@NonNull DynamicContext dynamicContext)
      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