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 2971 - Incorrect gMonth format
Summary: Incorrect gMonth format
Status: RESOLVED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 0.8.6
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Carmelo Montanez
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-03 17:48 UTC by Michael Kay
Modified: 2006-03-14 21:53 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2006-03-03 17:48:52 UTC
The data file atomic.xml contains the following data for an element of type
xs:gMonth:

<atomic:gMonth>--12--</atomic:gMonth> 

This is invalid. XML Schema Part 2 says:

The lexical representation for gMonth is the left and right truncated lexical
representation for date: --MM. An optional following time zone qualifier is
allowed as for date. No preceding sign is allowed. No other formats are allowed. 

[History: the first issue of XML schema part 2 incorrectly gave the format of
gMonth as --M--. This was corrected by subsequent erratum. Many Schema
processors continue to accept the invalid --M-- format because they get less
hassle from users if they do: many textbooks, for example, have blindly copied
the error from the original spec. However, it's invalid according to the current
normative spec.]
Comment 1 Carmelo Montanez 2006-03-06 18:39:33 UTC
Michael:

Thanks.  I will have to take a close look at this as it may affect a number of tests.

Thanks,
Carmelo
Comment 2 Carmelo Montanez 2006-03-14 21:53:21 UTC
Michael:

Correct.  Fixed file.  I believe, this will not affect any tests.  Please close
the bug if in agreement and able to verify.

Thanks,
Carmelo