New method on EntityResolver?

Norman Walsh <[email protected]>
Newsgroups gmane.text.xml.sax.devel
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In SAX2, the EntityResolver has a single method, resolveEntity() that
returns an InputSource. However, applications sometimes need access
to unparsed external entities where an InputSource is inappropriate.
Consider:

<!DOCTYPE doc [
<!NOTATION PNG SYSTEM "http://www.w3.org/TR/REC-png">
<!ENTITY mypicture PUBLIC "publicId" "someURI" NDATA PNG>
<!ELEMENT doc (graphic+)>
<!ELEMENT graphic EMPTY>
<!ATTLIST graphic
	entityref ENTITY #REQUIRED
>
]>
<doc>
<graphic entityref="mypicture"/>
</doc>

An application that wishes to access mypicture might need to pass that
entity through the resolution process.

My first suggestion is a new method:

  public String resolveEntityURI(java.lang.String publicId,
                                 java.lang.String systemId)

It returns the system identifier of the resolved resource or null if
no resolution was possible.

Thoughts?

                                        Be seeing you,
                                          norm

- -- 
Norman Walsh <[email protected]> | For the mental patient's family and
http://nwalsh.com/            | society, mental illness is a 'problem';
                              | for the patient himself it is a
                              | 'solution'.--Thomas Szasz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.7 <http://mailcrypt.sourceforge.net/>

iD8DBQE9uBcgOyltUcwYWjsRAmMCAJ0Wm4kjzyilHne7msCrYc20S/5ciwCfY446
WbOX6sD5Plb+mrPEIf8uRuw=
=HmjB
-----END PGP SIGNATURE-----


-------------------------------------------------------
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote
_______________________________________________
List: sax-devel, [email protected]
See:  http://www.saxproject.org/
https://lists.sourceforge.net/lists/listinfo/sax-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.