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 14894 - eqname tests
Summary: eqname tests
Status: RESOLVED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: unspecified
Hardware: PC Windows 3.1
: P2 normal
Target Milestone: ---
Assignee: Benjamin Nguyen
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-21 16:18 UTC by Tim Mills
Modified: 2013-06-11 09:53 UTC (History)
2 users (show)

See Also:


Attachments

Description Tim Mills 2011-11-21 16:18:13 UTC
The tests:

eqname-001	  
eqname-002	  
eqname-003	  
eqname-004	  
eqname-005	  
eqname-006	  
eqname-007	  
eqname-008	  
eqname-009	  
eqname-010	  
eqname-011	  
eqname-012	  
eqname-013	  
eqname-901	  
eqname-902	  
eqname-903

expect XQST0031 when executed by an XQeruy 1.0 processor.  However, they do not have a query version declaration.
Comment 1 Michael Kay 2011-11-21 17:42:57 UTC
I'm not sure what you are saying here.  These tests are labelled either "XQ30+" or "XP30+ XQ30+". That means you shouldn't run them with an XQuery 1.0 processor. They therefore do not have an expected result when run with an XQuery 1.0 processor. I don't believe they require an XQuery version declaration, since an XQuery 3.0 processor assumes a version of "3.0"
Comment 2 Tim Mills 2011-11-22 08:01:55 UTC
Note that this is XQTS, not the new test suite.

Here's an example.

There's an expected-error for spec-version 1.0.  The only way to get that error is to have a query declaration in the query and run in a processor not supporting 3.0.

    <test-case is-XPath2="false" name="eqname-001" FilePath="Basics/EQNames/" scenario="standard" Creator="Michael Kay">
        <description>Use EQName as a step in a path expression</description>
        <spec-citation spec="XQuery" section-number="2" section-title="Basics" section-pointer="doc-xquery30-EQName"/>
        <query name="eqname-001" date="2010-03-16"/>
        <output-file spec-version="3.0" role="principal" compare="XML">eqname-001.out</output-file>
        <expected-error spec-version="1.0">XQST0031</expected-error>
    </test-case>
Comment 3 Michael Kay 2011-11-22 23:50:10 UTC
>Note that this is XQTS, not the new test suite.

Sorry, I missed that.

I don't know what we're doing about the XQTS test suite. I don't believe it contains anything of use that hasn't been migrated to QT3. Ideally we should probably roll it back to be a pure XQuery 1.0 test suite. Certainly, I don't think we should try and maintain both.
Comment 4 O'Neil Delpratt 2013-06-11 09:53:55 UTC
I am closing this bug issue as I believe QT1 is now obsolete and is not relevant in the new format of QT3 (see comment #1 and #3).