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=8249>. 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=8249 An external entity behave as a part of the internal subset of the DTD when it is specified with an urn Summary: An external entity behave as a part of the internal subset of the DTD when it is specified with an urn Product: Xerces2-J Version: 2.0.0 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Blocker Priority: Other Component: SAX AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Hi, Mr Xerces developper I encountered the following problem : I specified external ressources (as entities) with an urn instead of an url, like this : <!ENTITY % refdoc SYSTEM "urn:x-semir:RESS:dtd/refdoc.ent"> The parser uses an entity resolver to bind the urns to the correct file. When I call the entity, the SAX parser seems to incorporate the content of the file inside the XML document (but it shouldn't), and an error occurred because, as the error message said, the file contained a call to another parameter entity within markup. This error shouldn't occurred, because this call is not done inside the internal subset of the DTD, but inside an external entity. Notice that when I replace the urn by a classic url reference, the substitution works fine. For exemple : <!ENTITY % refdoc SYSTEM "http://www.acme.com/path/ress/dtd/refdoc.ent"> works, but when I replace it with the above urn, it doesn't work. The refdoc.ent file contains : <!ENTITY doctype "%DOCTYPE;"> (the parameter entity DOCTYPE is defined in the internal subset) and the error obtained when I use the urn is this one : org.xml.sax.SAXException: The parameter entity reference "%DOCTYPE;" cannot occur within markup in the internal subset of the DTD. I think this is a real bug because I got 2 different behaviour (when I use urn and when I use url) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
