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/02 17:14:13 UTC
[Bug 816] New - The parser does not raise an error when the facet "minLength" for the datatype "language" has a value other than nonNegativeInteger.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=816
*** shadow/816 Fri Mar 2 08:14:13 2001
--- shadow/816.tmp.24338 Fri Mar 2 08:14:13 2001
***************
*** 0 ****
--- 1,36 ----
+ +============================================================================+
+ | The parser does not raise an error when the facet "minLength" for the data |
+ +----------------------------------------------------------------------------+
+ | Bug #: 816 Product: Xerces-J |
+ | Status: NEW Version: 1.3.0 |
+ | Resolution: Platform: PC |
+ | Severity: Normal OS/Version: |
+ | Priority: 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 "minLength" is required to have a nonNegativeInteger value, however
+ an error is not raised by the parser for a simpleType derived by restriction
+ from the Derived type "language", with the facet "minLength" having a value="-
+ 5". 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="mylanguage">
+ <restriction base="language">
+ <minLength value="-5"/>
+ <maxLength value="5"/>
+ </restriction>
+ </simpleType>
+
+ Reference:
+ Sections 2.4.2.1, 4.2.2 and 5.2.2 of
+ XML Schema Part 2: Datatypes
+ W3C Candidate Recommendation 24 October 2000
+ IBM schema invalid test case: ibmd3_3_3si03