You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xml.apache.org by Edwin Goei <ed...@sun.com> on 2001/10/13 01:22:26 UTC

Re: [Crimson] how to determine DTD declarations are internal or external?

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


Re: [Crimson] how to determine DTD declarations are internal or external?

Posted by James Strachan <ja...@yahoo.co.uk>.
Hi Edwin

> > 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.

Me neither ;-)

> Do you happen to have a patch?  Else, I'll add it to my to do
> list.  When do you need a fix?

Its no big deal right now, so long as its flagged and gets fixed at some
time is fine with me. Basically in dom4j I'd like the default be to turn all
internal DTD delcarations into part of the object model so that proper round
tripping of documents occurs though since this feature doesn't work yet
against Crimson I've disabled it for now. As soon as it works in Crimson
I'll flick the switch.

I'm fairly fully loaded for a week or so; after then I might have time to
look into the Crimson code base and try figure out a fix.

James


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


---------------------------------------------------------------------
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