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 2274 - Catalogue format (for testing multiple syntaxes for XQuery)
Summary: Catalogue format (for testing multiple syntaxes for XQuery)
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 0.6.0
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Andrew Eisenberg
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-21 09:53 UTC by David Carlisle
Modified: 2005-10-31 20:47 UTC (History)
0 users

See Also:


Attachments

Description David Carlisle 2005-09-21 09:53:14 UTC
The catalogue has a slot for specifying a directory structure for XQueryX files
XQueryXQueryOffsetPath="Queries/XQueryX/"

However (having built XQueryX and XSLT versions of all the XQuery test files)
I think it would help if a couple of extra attributes were added.

The filenames are specified as, eg, <query name="Literals003.xq"
with full name including the extension. It would be helpful (or at least more
symmetric) if the extension was omitted from the name attribute and instead a
top level attribute XQueryExtension=".xq" were added to the <test-suite element.

This would allow XQueryX files to be specified with a top level
 XQueryXQueryOffsetPath="Queries/XQueryX/"
and
 XQueryXExtension=".xqx"

Currently all the test files are authored in XQuery and automatically converted
to XQueryX, however that inevitably means that some aspects of XQueryX are not
tested: In order to gain full coverage of XQueryX (or any other syntax, such as
XSLT) it would be necessary to hand author some test files in that syntax, and
in that case convert those tests _to_ XQuery. In order to drive a convertor to
convert the tests in appropriate ways it would be useful to have a
"sourceformat" attribute on the <query (or <test-case) element that specified
which format was the source for the test. The schema could default this to
XQuery, so none of the current tests would be affected, but it would allow hand
written XQueryX tests to be dropped in to the test suite without having them
overwritten by a general XQuery-to-XQueryX convertor, and allow an automatic
XQueryX-to-XQuery convertor to generate XQuery test files for those tests.

David
Comment 1 David Carlisle 2005-10-26 09:58:45 UTC
I note that almost all of this is implemented in the 0.7 release.
(Whether or not this report influenced that:-)

It seems like I can't close the report without first accepting it and assigning
it to someone, which I don't think I should do, but feel free to close it when
you wish.

David