incorrect result of a query

I have a query like this:
…?_xql(1,10)=/nodeA/nodeB[nodeC~="("]
I expect to get the nodeB’s for which nodeC contains a ‘(’. But I also receive nodeC’s without ‘(’. Is this some reserved character in Tamino (3.1)?

Pieter

That’s correct, as long as your XML data looks like this:


no paranthesis
no paranthesis
paranthesis ( more text

because you selected all nodeB that have a (read: at least one) child of name nodeC with content “(” .

If you wanted nodeCs in the first place, change your query to nodeA/nodeB/nodeC[.~="("] .

Helped?

Best regards, Andreas

There are no multiple nodeC’s in the document, thus Tamino mustn’t return nodeC in this case.

Pieter

Please post your schema and a sample XML file Tamino returns with your query and you think is in error.

Best regards, Andreas

here’s a sample query and result:

]http://172.16.64.101/tamino/LABO/testResults?_xql=/testResult[appearance~=’(’]

code:

<?xml version="1.0" encoding="windows-1252" ?>
- <ino:response xmlns:ino=“http://namespaces.softwareag.com/tamino/response2” xmlns:xql=“http://metalab.unc.edu/xql/”>
xql:query/testResult[appearance~=’(’]</xql:query>
- <ino:message ino:returnvalue=“0”>
ino:messagelineXQL Request processing</ino:messageline>
</ino:message>
- xql:result
-
test D18
semi turbid
-
6.3
pH

-
23
mS

-
21.3

testResult.tsd (1.93 KB)

You’d better not search for “(” because full-text search (searching for a “word” in terms of Tamino) and content search (searching for a substring) are different things.