Error while validating a simple type with pattern facet and value constraint
----------------------------------------------------------------------------

         Key: XERCESJ-1056
         URL: http://issues.apache.org/jira/browse/XERCESJ-1056
     Project: Xerces2-J
        Type: Bug
  Components: XML Schema Structures  
    Versions: 2.6.2    
 Environment: PC, Linux Red Hat 7.1
    Reporter: J�r�me LEMOYNE


the following schema can not be validated by Xerces :

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:tns="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:xs="http://www.w3.org/2001/XMLSchema";>
        <xs:attribute name="root" default="0">
                <xs:simpleType>
                        <xs:restriction base="xs:boolean">
                                <xs:pattern value="0|1"/>
                        </xs:restriction>
                </xs:simpleType>
        </xs:attribute>
</xs:schema>

Its validation results in the following error messages :
Error:(file:/bug.xsd:Line.6,Col.41)a-props-correct.2: Invalid value constraint 
value '0' in attribute 'root'.
Error:(file:/bug.xsd:Line.6,Col.41)cvc-pattern-valid: Value 'false' is not 
facet-valid with respect to pattern '0|1' for type 'null'.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to