"instance of document-node(element(x))" in predicate

Bug #867256 reported by Chris Hillery
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Zorba
New
Medium
Nicolae Brinza

Bug Description

This is W3C test test/rbkt/w3c_testsuite/XQuery/PathExpr/Steps/Steps-leading-lone-slash-8a , which is:

  declare variable $var := document {<a>123</a>};
  $var[(/) instance of document-node(element(x))]

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.)

Tags: parser

Related branches

Chris Hillery (ceejatec)
tags: removed: core-runtime
tags: removed: v2.1
tags: added: parser
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.