DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17417>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

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

Regex {min,max} with min > max not rejected

           Summary: Regex {min,max} with min > max not rejected
           Product: Xerces2-J
           Version: 2.3.0
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: XML Schema datatypes
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Xerces doesn't reject uses of {min,max} where min > max.  For example, this is
accepted:

<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'>
 <xs:element name="test">
  <xs:simpleType>
   <xs:restriction base="xs:string">
     <xs:pattern value="x{2,1}"/>
   </xs:restriction>
  </xs:simpleType>
 </xs:element>
</xs:schema>

The Rec isn't as explicit as it might be that this is illegal, but the table
header says:

"For all �atom�s S and non-negative integers n, m such that ***n <= m***, valid
�piece�s R are:"

So I think it is clear that this is illegal.

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

Reply via email to