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=21200>. 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=21200 Using general entities in DTD on W3C schema Summary: Using general entities in DTD on W3C schema Product: Xerces2-J Version: 2.0.0 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Blocker Priority: Other Component: DOM AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Here is how I want to setup the Schema: <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE xsd:schema [ <!-- Define the name and path to an external file - this is the modified entities--> <!ENTITY % entity-defs SYSTEM "ACMEentity-file.xsd"> <!-- Now reference the file into this schema --> %entity-defs; ]> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.ACORD.org/standards/PC_Surety/ACORD1.3.0/xml/" elementFormDefault="unqualified" attributeFormDefault="unqualified" targetNamespace="http://www.ACORD.org/standards/PC_Surety/ACORD1.3.0/xml/" version="1.3.0"> <xsd:complexType name="AddressType"> <xsd:simpleContent> <xsd:restriction base="OpenEnum"> <xsd:enumeration value="BillingAddress"/> <xsd:enumeration value="BranchOffice"/> <xsd:enumeration value="PreviousAddress"/> <xsd:enumeration value="RecipientAddress"/> <xsd:enumeration value="ShippingAddress"/> <xsd:enumeration value="StreetAddress"/> &AddressType_entity; </xsd:restriction> </xsd:simpleContent> </xsd:complexType> Now the entity file would contain this: <!ENTITY AddressType_entity ' <xsd:enumeration value="com.acme_CollegeAddress"/> <xsd:enumeration value="com.acme_BoardingSchoolOffice"/> <xsd:enumeration value="com.acme_StorageLocationAddress"/> ' > <!ENTITY AirBagStatus_entity ''> <!ENTITY AirBagType_entity ''> When I run an instance document that uses this setup, Xerces reports a DOM error: DOM001 Modification not allowed followed by a hard Java crash. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
