Hello Dalius,
Tamino XQuery 4 follows an earlier WD of W3C XQuery, which uses reserved keywords.
That means the keywords of the language cannot be directly used as identifiers.
There is a not documented syntactical extension that allows to escape those keywords:
The use of a prefix token “:” is allowed on unprefixed QNames to visually distinguish tokens that are spelled the same as keywords. For instance, the following is a path expression containing the element names “for”, “if”, and “return”: :for/:if/:return.
Example:
for $i in input()/e1
return $i/:attribute
The newest version of the W3C Xquery draft
has abolished reserved keywords.
Therefore please note that a future version
of Tamino XQuery 4 will very probably no
longer support this syntactical extension.
Best regards
Walter
Tamino R&D
#API-Management#webMethods#Tamino