From: Guillaume P. <gpo...@gm...> - 2006-03-17 21:14:09
|
> Feel free to provide an autonomous simple test case : *I*'d like to test > it with regard to the everlasting performant/compliant competition. > Well this can be reduced to a very simple test case: starting with an empty database, add a document with the following content in root: <b id=3D"1"> <a id=3D"M0"/> </b> Then issue query xquery version '1.0'; for $subModel in collection('/')/*[@id=3D'1']//*[not(contains(@id, '.')) and contains(@id, '= M')] return <result>{$subModel/@id}</result> Result is: <result id=3D"M0"/> which is correct. Then issue query: xquery version '1.0'; for $subModel in collection('/')/*[@id=3D'1']//*[contains(@id, 'M') and not(contains(@id, '.= '))] return <result>{$subModel/@id}</result> This query returns no result, which obviously is not correct. Regards, Guillaume Pothier |