[XSL-LIST Mailing List Archive Home]
Re: [xsl] doc-available() using a caching EntityResolver on a CustomURIResolver
Subject: Re: [xsl] doc-available() using a caching EntityResolver on a CustomURIResolver|
From: "andrew welch" <andrew.j.welch@xxxxxxxxx>
Date: Fri, 30 Jun 2006 12:57:57 +0100
On 6/30/06, Michael Kay <mike@xxxxxxxxxxxx> wrote:
> Is it possible to give the XMLReader that receives the Source
> from a CustomURIResolver a caching EntityResolver - Are then
> any examples around?
Yes and no.
You URIResolver can return a SAXSource containing an XMLReader which has
been configured any way you like; or you can build the tree within your
URIResolver and return any kind of Source that the implementation accepts,
e.g. a DOMSource or in Saxon a DocumentInfo.
Thanks Mike - returning a SAXSource sounds best.