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 4281 - version_declaration-010
Summary: version_declaration-010
Status: RESOLVED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 1.0.2
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Andrew Eisenberg
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-26 23:21 UTC by Michael Kay
Modified: 2007-08-09 20:07 UTC (History)
1 user (show)

See Also:


Attachments

Description Michael Kay 2007-01-26 23:21:36 UTC
Test version_declaration-010 gives an expected error because the specified encoding is invalid.

The XQueryX version of the test is completely valid, so it does not deliver the same results. In these circumstances it's misleading to have an XQueryX version of the test.

Also: the XQuery version of the test has a comment preceding the version declaration. The specification states: "If a version declaration is present, no Comment may occur before the end of the version declaration. If such a Comment is present, the result is implementation-dependent." The result of this test is therefore entirely unpredictable.
Comment 1 Andrew Eisenberg 2007-08-09 20:07:00 UTC
The XQueryX version of this test has been removed from the test suite. This was also caught in Bug #4773.

The XQuery version of the test has been changed to:

   xquery version "1.0" encoding "999-UTF-8-*";
   
   (:*******************************************************:)
   (: Test: version_declaration-010.xq                      :)
   (: Description:Evaluation of version declaration, for    :)
   (: which the encoding does not conforms to "encName" from XML 1.0. :)
   
   "ABC"


Please close this bug report if you agree with this resolution.