You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2001/03/01 19:11:09 UTC

[Bug 772] New - The parser does not raise an error when the facet "length" of the datatype "ID" has a value other than nonNegativeInteger.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=772

*** shadow/772	Thu Mar  1 10:11:09 2001
--- shadow/772.tmp.14023	Thu Mar  1 10:11:09 2001
***************
*** 0 ****
--- 1,34 ----
+ +============================================================================+
+ | The parser does not raise an error when the facet "length" of the datatype |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 772                         Product: Xerces-J                |
+ |       Status: NEW                         Version: 1.3.0                   |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Normal                   OS/Version:                         |
+ |     Priority: Medium                    Component: Schema-Datatypes        |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: xerces-j-dev@xml.apache.org                                  |
+ |  Reported By: nddelima@ca.ibm.com                                          |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ Description:
+ The facet "length" is required to have a nonNegativeInteger value, however an 
+ error is not raised by the parser for a simpleType derived by restriction from 
+ the Primitive type "ID", with the facet "length" having a value="-5.1efg".  The 
+ section of code from a sample schema document that should have caused the 
+ parser to raise an error is as below:
+ 
+ Sample:
+ <simpleType name="myID">
+ 	<restriction base="ID">
+ 	        <length value="-5.1efg"/>
+ 	</restriction>
+ </simpleType>
+ 
+ Reference:
+ Sections 2.4.2.1, 4.2.1 and 5.2.1 of
+ XML Schema Part 2: Datatypes
+ W3C Candidate Recommendation 24 October 2000