Re: SAX: External Entity Start and End (question 2 of 10)

Peter Murray-Rust (peter@ursus.demon.co.uk)
Sun, 04 Jan 1998 20:04:07


At 13:28 04/01/98 -0500, David Megginson wrote:
>However, the DTD designer almost certainly intended this to resolve to
>
> http://yourhost.com/stylesheet.xsl

Agreed.
>
>The only way that I can resolve this correctly is if I know the URI of
>the current external entity. In Lark, you provide this information
>with a separate Entity argument to each callback; this is a legitimate
>(and more powerful) option, but from the perspective of SAX, it ends
>up complicating the entire API instead of just adding two
>easily-ignored callbacks.

In developing JUMBO I have found it necessary to keep track of URL/Is of
the subcomponents of a document. I suspect that XMLers will very soon start
using XML for distributed documents and wish to know where the components
come from. Thus a standard document is increasingly likely to have
transcluded information or meta-information (the stylesheet is an example).
so, if it's not too difficult, including entity info could be much used.

P.
Peter Murray-Rust, Director Virtual School of Molecular Sciences, domestic
net connection
VSMS http://www.nottingham.ac.uk/vsms, Virtual Hyperglossary
http://www.venus.co.uk/vhg