[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: SAX2 ... missing features?
- From: Jonathan Borden <jborden@mediaone.net>
- To: Michael Brennan <Michael_Brennan@allegis.com>,'David Brownell' <david-b@pacbell.net>, xml-dev@lists.xml.org
- Date: Fri, 13 Jul 2001 06:28:38 -0400
Michael Brennan wrote:
>
>
> I'd like to see a standard SAX extension for a resource resolver. It could
> perhaps take some cues from RDDL -- i.e. allow the parser to ask for
> resources related to a namespace URI based on a nature, purpose, or both.
> Perhaps something like:
>
> public interface ResourceResolver
> {
> public InputSource resolveResourceByNature(
> String namespaceURI, String nature );
> public InputSource resolveResourceByPurpose(
> String namespaceURI, String nature );
> public InputSource resolveResource(
> String namespaceURI, String nature, String purpose );
> }
>
> This addresses the problem while remaining extensible (i.e. it doesn't tie
> the API to a specific purpose or schema grammar).
>
> I'd really, really like to see parsers supporting a portable, scalable API
> for this sort of thing.
>
Does the API at http://www.rddl.org/docs fit the bill? Particularly note the
RDDLFilter (a SAX2 filter) and RDDLURL classes and the Namespace interface.
-Jonathan