This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 23924 - [QT3TS] XQueryX conversion of XQST0085b
Summary: [QT3TS] XQueryX conversion of XQST0085b
Status: RESOLVED LATER
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3 & XPath 3 Test Suite (show other bugs)
Version: 2nd Edition Recommendation
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: O'Neil Delpratt
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-26 11:26 UTC by Tim Mills
Modified: 2014-03-18 15:34 UTC (History)
1 user (show)

See Also:


Attachments

Description Tim Mills 2013-11-26 11:26:20 UTC
This test doesn't seem to match its XQuery counterpart.

Compare:

<a xmlns:foo="http://www.w3.org/"> <b xmlns:foo="" /> </a>

with:

<xqx:mainModule>
    <xqx:queryBody>
      <xqx:functionCallExpr>
        <xqx:functionName>exists</xqx:functionName>
        <xqx:arguments>
          <xqx:elementConstructor>
            <xqx:tagName>element</xqx:tagName>
            <xqx:attributeList>
              <xqx:namespaceDeclaration>
                <xqx:prefix>foo</xqx:prefix>
                <xqx:uri>http://www.w3.org/</xqx:uri>
              </xqx:namespaceDeclaration>
            </xqx:attributeList>
            <xqx:elementContent>
              <xqx:elementConstructor>
                <xqx:tagName>element</xqx:tagName>
                <xqx:attributeList>
                  <xqx:namespaceDeclaration>
                    <xqx:prefix>foo</xqx:prefix>
                    <xqx:uri></xqx:uri>
                  </xqx:namespaceDeclaration>
                </xqx:attributeList>
              </xqx:elementConstructor>
            </xqx:elementContent>
          </xqx:elementConstructor>
        </xqx:arguments>
      </xqx:functionCallExpr>
    </xqx:queryBody>
  </xqx:mainModule>
</xqx:module>

Where has the function call to exists come from?
Comment 1 Michael Dyck 2013-12-03 01:13:37 UTC
The <test> of test-case XQST0085b was changed from

    exists(<element xmlns:foo="http://www.w3.org/">
           <element xmlns:foo="" /> </element>)

to

    <a xmlns:foo="http://www.w3.org/"> <b xmlns:foo="" /> </a>

in rev 1.39 of misc/CombinedErrorCodes.xml (2013-11-02).

The XQueryX query appears to be based on the older version of the test.
Comment 2 O'Neil Delpratt 2014-03-18 15:34:54 UTC
I am marking this bug as resolved. If you agree, in the next generation of the XQueryX tests we will pick up changes in the tests.