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 29821 - [qt3ts] Test case UseCaseR31-027
Summary: [qt3ts] Test case UseCaseR31-027
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3 & XPath 3 Test Suite (show other bugs)
Version: Candidate Recommendation
Hardware: PC All
: 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: 2016-09-13 23:12 UTC by Michael Kay
Modified: 2016-09-20 10:19 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2016-09-13 23:12:06 UTC
This test uses an implicitly declared parameter:

<param name="sales-collection-uri" as="xs:string" select="'http://www.w3.org/2010/09/qt-fots-catalog/sales-json'" declared="false"/>

But the query starts with a namespace declaration, so it is not easy for a test driver to insert an external variable declaration into the text of the query at a suitable point.

The test catalog schema (but not the user guide) documents a mechanism to cope with this: it says the string (:VARDECL:) can be placed in the query at the point where the external variable is to be declared. But there are no tests that actually use this mechanism and there are probably many test drivers that don't recognize it. It would be much easier since this is an XQuery-only test to simply add the external variable declaration to the query, and change the parameter to say declared="true".
Comment 1 Michael Kay 2016-09-13 23:17:44 UTC
I have solved the problem pragmatically by changing the test to not use a namespace declaration.
Comment 2 O'Neil Delpratt 2016-09-20 10:19:16 UTC
This bug has been fixed and committed to cvs.