unknown function: contains


how to make a xquery with a request for a string contains an other string?

i tried

 for $x in input()/list where contains($x/entry, "book 1") return $x 

without any result. Tamino throws access failure (INOXQE6358, Function unknown, Function: contains).

same thing with function ‘text-contains’.

What namespace i’d have to declare or what to do basicly to search for a part of a string.


Bastian Gorke

X-Application Version: 4.1.1
Tamino Version :
Platform : Linux
WebContainer : Tomcat 4.1.18, Struts
JDK Version : 1.4.1_02-b06


I had a look into the Tamino documentation. There is a reference for XQuery


with a chapter about implemented function. The XPath method ‘contains’ is not listed. There is only ‘xs:starts-with’ mentioned. However, there is a method ‘tf:containsText’.

Perhaps, this method helps you to implement your query.