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=3921>. 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=3921 Length calculated incorrectly for all-whitespace elements Summary: Length calculated incorrectly for all-whitespace elements Product: Xerces-J Version: 1.4.3 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: Schema-Datatypes AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] If I have an element of type xsd:string that contains 5 spaces, e.g. <test> </test>, its length should be considered to be 5. However, when I give it the following simple type: <xsd:simpleType name="testType"> <xsd:restriction base="xsd:string"> <xsd:minLength value="5"/> <xsd:maxLength value="5"/> </xsd:restriction> </xsd:simpleType> I get an error [Error] mytest.xml:3:68: Datatype error: In element 'test' : Value '' with lengt h '0' is less than minimum length facet of '5'.. The whitespace in an xsd:string value should preserved, so this error is incorrect. If the type were based on xsd:token, it would be correct. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
