← Back to team overview

zorba-coders team mailing list archive

[Bug 867256] Re: "instance of document-node(element(x))" in predicate

 

** Branch linked: lp:~nbrinza/zorba/bugs

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/867256

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

Status in Zorba - The XQuery Processor:
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/867256/+subscriptions