"instance of document-node(element(x))" in predicate
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
New
|
Medium
|
Nicolae Brinza |
Bug Description
This is W3C test test/rbkt/
declare variable $var := document {<a>123</a>};
$var[(/) instance of document-
This returns <a>123</a>, but according to the W3C should return empty sequence. If you replace the "(/)" with just ".", you get the same result; but if you change $var to be an element instead of a document, you get the empty sequence. It seems as though perhaps the element(x) portion of the predicate is not being evaluated.
Assigned to Nicolae for the moment; re-assign as necessary.
(Note: This is a W3C failure that we were not previously detecting due to a testdriver bug, so it will appear as a regression in our conformance results.)
Related branches
- Matthias Brantner: Pending requested
- Markos Zaharioudakis: Pending requested
-
Diff: 279 lines (+127/-7)20 files modifiedChangeLog (+1/-0)
src/types/typeimpl.cpp (+6/-6)
test/rbkt/ExpQueryResults/zorba/schemas/doc-node-schema-elem-test-03.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/schemas/doc-node-schema-elem-test-05.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/schemas/doc-node-schema-elem-test-06.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/schemas/doc-node-schema-elem-test-07.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/schemas/doc-node-schema-elem-test-08.xml.res (+1/-0)
test/rbkt/Queries/CMakeLists.txt (+0/-1)
test/rbkt/Queries/zorba/schemas/doc-node-schema-elem-test-01.spec (+1/-0)
test/rbkt/Queries/zorba/schemas/doc-node-schema-elem-test-01.xq (+10/-0)
test/rbkt/Queries/zorba/schemas/doc-node-schema-elem-test-02.spec (+1/-0)
test/rbkt/Queries/zorba/schemas/doc-node-schema-elem-test-02.xq (+10/-0)
test/rbkt/Queries/zorba/schemas/doc-node-schema-elem-test-03.xq (+10/-0)
test/rbkt/Queries/zorba/schemas/doc-node-schema-elem-test-04.spec (+1/-0)
test/rbkt/Queries/zorba/schemas/doc-node-schema-elem-test-04.xq (+10/-0)
test/rbkt/Queries/zorba/schemas/doc-node-schema-elem-test-05.xq (+9/-0)
test/rbkt/Queries/zorba/schemas/doc-node-schema-elem-test-06.xq (+9/-0)
test/rbkt/Queries/zorba/schemas/doc-node-schema-elem-test-07.xq (+9/-0)
test/rbkt/Queries/zorba/schemas/doc-node-schema-elem-test-08.xq (+9/-0)
test/rbkt/Queries/zorba/schemas/orderData.xsd (+36/-0)
tags: | removed: core-runtime |
tags: | removed: v2.1 |
tags: | added: parser |