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=4811>. 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=4811 Simple content complex type restriction with xs:whiteSpace Summary: Simple content complex type restriction with xs:whiteSpace Product: Xerces-J Version: CVS extract Platform: PC OS/Version: Linux Status: NEW Severity: Normal Priority: Other Component: Schema-Structures AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] IMO (confirmed on xmlschema-dev), this schema should be valid: XSD: <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="tests"> <xs:complexType> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element name="token" type="token"/> <xs:element name="string" type="string"/> </xs:choice> </xs:complexType> </xs:element> <xs:simpleType name="simpleString" > <xs:restriction base="xs:string"> <xs:pattern value=""/> </xs:restriction> </xs:simpleType> <xs:complexType name="string"> <xs:simpleContent> <xs:extension base="simpleString"/> </xs:simpleContent> </xs:complexType> <xs:complexType name="token"> <xs:simpleContent> <xs:restriction base="string"> <xs:whiteSpace value="collapse"/> </xs:restriction> </xs:simpleContent> </xs:complexType> </xs:schema> but it gives: [Error] empty.xml:2:52: Schema error: ComplexType 'token': Invalid child in the RESTRICTION element of simpleContent. See also: http://lists.w3.org/Archives/Public/xmlschema-dev/2001Nov/0134.html Thanks Eric --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
