Support for 'contains()' function

Hi

Does Tamino support the ‘contains()’ function when using xquery?

I am trying

 for $x in input()/DesignationCode[contains(/DesignationCode,'Analyst')] return $x </pre> but receive the error <pre class="ip-ubbcode-code-pre"> <ino:message ino:returnvalue="6358">
  <ino:messagetext ino:code="INOXQE6358">Function unknown</ino:messagetext> 
  <ino:messageline>Function: contains</ino:messageline> 
  </ino:message> 



Thanks
Elsabe Jacobs

Hello Elsabe,

The function contains() is not implemented but there is the tf:containsText() function which may provide the functionality you need. For example:-

  
declare namespace tf="http://namespaces.softwareag.com/tamino/TaminoFunction"
input()/DesignationCode
where tf:containsText($x/somespecificnode, 'Analyst')
return $x



For more information please refer to Tamino documentation. Hope this helps.

Stuart Fyffe-Collins
Software AG (UK) Ltd.

Elsabe,

Stuart is right, use tf:containsText instead. xf:contains will be available with the next Tamino Version, release to be in Q2 2004

regards,

Timm