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=17798>. 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=17798 Content type of derived type (mixed/element-only) Summary: Content type of derived type (mixed/element-only) Product: Xerces2-J Version: 2.3.0 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: XML Schema Structures AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Consider the following schema code: <element name="root"> <complexType> <sequence> <element name="myEelem"> <complexType> <complexContent> <extension base="anyType"> <attribute name="currency" type="string"/> <attribute name="value" type="decimal"/> </extension> </complexContent> </complexType> </element> </sequence> </complexType> </element> The element called 'myElem' extends 'anyType' to add two different attributes. According to the schema for schemas, the content type of 'anyType' is defined to be mixed. (ie. <xs:complexType name="anyType" mixed="true"> ), but the content type of 'myElem' is element-only. Hence the above schema code is invalid since the content type of both the base and derived type must both be either mixed or element-only. The above code goes undetected in Xerces-J. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
