[Sax-devel] Re: RFE #434478 (SAX2 and resolving system IDs)
Brought to you by:
dmegginson
|
From: David B. <da...@pa...> - 2001-11-07 17:43:38
|
I was actually just repeating the current SAX convention, which
show up in startEntity(), endEntity(), and skippedEntity().
Changing that convention would be a very invasive proposal!
So to clarify:
> <!ENTITY general SYSTEM "foo"> ==> 'general'
> <!ENTITY % parameter SYSTEM "foo"> ==> '%parameter'
That's the current convention.
> <!DOCTYPE book SYSTEM "foo"> ==> '#book'
The current convention in that case uses "[dtd]".
> While one could use [book], I prefer #book, since # is
> SGML's "reserved name indicator" (RNI) character and
> it only requires tossing the first character, but
> anything that allows one to infer it's a doctype name
> is fine with me.
The root element name is separately reported. In that
text, LexicalHandler.startDTD("book", null, "foo") would
be passed, assuming that new flag is set to false.
- Dave
|