xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edwin Goei <edwi...@sun.com>
Subject Re: [Crimson] how to determine DTD declarations are internal or external?
Date Fri, 12 Oct 2001 23:22:26 GMT
James Strachan wrote:
> 
> The startDTD() method of the SAX LexicalHandler
> 
> http://dom4j.org/javadoc/org/xml/sax/ext/LexicalHandler.html
> 
> says on the topic of DTD declarations:-
> 
>     Declarations are assumed to belong to the internal DTD subset unless
> they appear between startEntity and endEntity events.
> 
> Now I've tried using this technique to implement internal and external DTD
> subsets for dom4j, there's details here:-
> 
> http://dom4j.org/todo.html
> 
> This all appears to work hunky dory for Xerces but for Crimson all DTD
> declarations appear to be internal, whether coming from internal or external
> source. i.e. I never get a startEntity/endEntity events to define the
> external declarations.
> 
> I take it this is a bug in Crimson? Or is there another way to know when you
> are getting internal or external DTD declarations - that works consistently
> for Crimson and Xerces and can handle mixed subsets (internal and external)?

Yes, looks like a Crimson bug.  Not sure I have time to fix it right
now.  Do you happen to have a patch?  Else, I'll add it to my to do
list.  When do you need a fix?

-Edwin

---------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org


Mime
View raw message