Get collation information for a single node.
tf:getCollation(node $node) => string
The function tf:getCollation
is specific to Tamino. It takes
a node as argument and returns the collation specification for that node as a
string.
$node |
either element or attribute node |
---|
Get collation information for the surname
element:
let $a := input()/patient/name/surname return tf:getCollation($a)
The returned string reflects the default settings when no collation had been defined in the schema:
http://www.softwareag.com/tamino/collation?language=en;strength=;caseFirst=;alternate=;caseLevel=;french=;normalization=
The key-value pairs after the question mark correspond to what you can
define in a tsd:collation
schema element.
Get all patient names that are compared as equal to "Müller":
for $i in input()/patient/name where compare($i/surname, 'Müller', tf:getCollation($i/surname)) = 0 return $i
This query returns those name
elements whose
surname
child element has a contents that is
compared equal to the string "Müller" using the
collation information for surname
elements.
The following construct(s) refer to this construct: