[
https://issues.apache.org/jira/browse/XERCESJ-753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12635208#action_12635208
]
[EMAIL PROTECTED] edited comment on XERCESJ-753 at 9/27/08 9:06 PM:
-----------------------------------------------------------------------
This is a five year old Bugzilla issue against Xerces 2.0.0. Sandy Gao couldn't
reproduce the problem and the reporter never responded with a runnable test
case or any other comments. Without any feedback from the reporter it's not
possible to make any progress on this issue (assuming there's still a problem
here or that there ever was a problem).
was (Author: [EMAIL PROTECTED]):
This is a five year old Bugzilla issue against Xerces 2.0.0. Sandy Gao
couldn't reproduce the problem and the reporter never responded with a runnable
test case or any other comments. Without any feedback from the reporter it's
not possible to make any progess on this issue (assuming there's still a
problem here or that there ever was a problem).
> Using general entities in DTD on W3C schema
> -------------------------------------------
>
> Key: XERCESJ-753
> URL: https://issues.apache.org/jira/browse/XERCESJ-753
> Project: Xerces2-J
> Issue Type: Bug
> Components: DOM (Level 3 Core)
> Affects Versions: 2.0.0
> Environment: Operating System: Windows NT/2K
> Platform: PC
> Reporter: Dan Vint
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]