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=8886>. 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=8886 Is this an error in Xerces ? Summary: Is this an error in Xerces ? Product: Xerces2-J Version: 2.0.1 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: XML Schema datatypes AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Hello, I'm not sure if this is an error in Xerces or in the schema. The schema is part of the standard "BatchML". I contacted the author and he said to me that the construction had been troublesome (with XMLSpy and TurboXML) but that now the implementation should be correct. He invented the construction with the help of people from TIBCO. So here is the troublesome part : <xsd:complexType name = "BatchListEntryType1Type"> <xsd:simpleContent> <xsd:restriction base = "xsd:string"> <xsd:enumeration value = "Campaign" /> <xsd:enumeration value = "Batch" /> <xsd:enumeration value = "UnitProcedure" /> <xsd:enumeration value = "Operation" /> <xsd:enumeration value = "Phase" /> <xsd:enumeration value = "Other" /> </xsd:restriction> </xsd:simpleContent> </xsd:complexType> The error I get is : org.xml.sax.SAXParseException: src-ct.2: Complex Type Definition Representation Error for type 'BatchListEntryType1Type'. When simpleContent is used, the base type must be a complexType whose content type is simple, or, only if extension is specified, a simple type. It works if I change it to : <xsd:simpleType name = "BatchListEntryType1Type"> <xsd:restriction base = "xsd:string"> <xsd:enumeration value = "Campaign" /> <xsd:enumeration value = "Batch" /> <xsd:enumeration value = "UnitProcedure" /> <xsd:enumeration value = "Operation" /> <xsd:enumeration value = "Phase" /> <xsd:enumeration value = "Other" /> </xsd:restriction> </xsd:simpleType> I'm sorry if this is not a bug but I couldn't find another way to contact the xerces developers. Kees. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
