Tamino XQuery

I am trying t execute the following xquery in Tamino. Tamino throws an access failure exception. Is this query correct? When I replace “77003-6611-1-en-pub” with a number say 6, no exceptions are thrown. But naturally, I do not get the data I want.I have a document with docname “77003-6611-1-en-pub”.

"declare namespace tf = “http://namespaces.softwareag.com/tamino/TaminoFunction
for $q in input()/html
where tf:getDocname($q) = “77003-6611-1-en-pub”
return $q

Is this a valid query?

Hi,

the query needs to be:

declare namespace tf = “http://namespaces.softwareag.com/tamino/TaminoFunction
for $q in input()/html
where tf:getDocname(root($q)) = “77003-6611-1-en-pub”
return $q

hope this helps.

Stuart Fyffe-Collins
Software AG (UK) Ltd.