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 2003/02/26 09:24:03 UTC

DO NOT REPLY [Bug 17417] New: - Regex {min,max} with min > max not rejected

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: xerces-j-dev@xml.apache.org
        ReportedBy: jjc@jclark.com


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: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org