i18n:apply($content as node()+, $modules as element(), $model as item()*) as item()*
Start processing the provided content using the modules defined by $modules. $modules should be an XML fragment following the scheme: <modules> <module prefix="module-prefix" uri="module-uri" at="module location relative to apps module collection"/> </modules>
$content+ | the sequence of nodes which will be processed |
$modules | modules to import |
$model* | a sequence of items which will be passed to all called template functions. Use this to pass information between templating instructions. |
i18n:getLanguageCollection($node as node()*, $selectedLang as xs:string, $pathToCatalogues as xs:string, $defaultLang as xs:string?) as item()*
$node* | $node* |
$selectedLang | $selectedLang |
$pathToCatalogues | $pathToCatalogues |
$defaultLang? | $defaultLang? |
i18n:getLocalizedText($textNode as node(), $selectedCatalogue as node()) as item()*
$textNode | $textNode |
$selectedCatalogue | $selectedCatalogue |
i18n:getPathToCatalogues($node as node()*, $pathToCatalogues as xs:string) as item()*
$node* | $node* |
$pathToCatalogues | $pathToCatalogues |
i18n:getSelectedLanguage($node as node()*, $selectedLang as xs:string) as item()*
$node* | $node* |
$selectedLang | $selectedLang |
i18n:process($node as node(), $selectedCatalogue as node()) as item()*
recursive function to traverse through the document and to process all i18n prefixed nodes
$node | node to analyse if is an i18n:* node |
$selectedCatalogue | $selectedCatalogue |
i18n:process($nodes as node()*, $selectedLang as xs:string, $pathToCatalogues as xs:string, $defaultLang as xs:string?) as item()*
Continue template processing on the given set of nodes. Call this function from within other template functions to enable recursive processing of templates.
$nodes* | the nodes to process |
$selectedLang | $selectedLang |
$pathToCatalogues | $pathToCatalogues |
$defaultLang? | $defaultLang? |
i18n:replaceParam($node as node(), $param as node(), $paramKey as xs:string, $text as xs:string, $selectedCatalogue as node()) as item()*
function replacing the parameter with its (localized) value
$node | i18n:translate node enclosing i18n:text and parameters to substitute |
$param | currently processed i18n:param as node() |
$paramKey | currently processed parameterKey (numerical or alphabetical) |
$text | the processed(!) content of i18n:text |
$selectedCatalogue | $selectedCatalogue |
i18n:translate($node as node(), $text as xs:string, $selectedCatalogue as node()) as item()*
function implementing i18n:translate to enable localization of strings containing alphabetical or numerical parameters
$node | i18n:translate node enclosing i18n:text and parameters to substitute |
$text | the processed(!) content of i18n:text |
$selectedCatalogue | $selectedCatalogue |
i18n:translateAttribute($attribute as attribute(), $node as node(), $selectedCatalogue as node()) as item()*
$attribute | $attribute |
$node | $node |
$selectedCatalogue | $selectedCatalogue |
i18n:translateAttributes($node as node(), $selectedCatalogue as node()) as item()*
$node | $node |
$selectedCatalogue | $selectedCatalogue |