xsl-list
[Top] [All Lists]

Re: [xsl] debugging document() call

2010-06-30 14:21:02

I just found
http://saxon.sourceforge.net/saxon7.9/extensibility.html#Writing-a-uri-resolver
which says, "Saxon allows you to write your own URIResolver to handle
the URIs of input documents, as defined in the JAXP 1.1 specification.
Such a URIResolver is used to process the URIs used in the |xsl:include|
and |xsl:import| declarations as well as the |document()| function. ..."

That sounds like a step in the right direction...
but how do I tell Saxon to use my URIResolver?


At the Saxon level, you call setURIResolver in any one of a number of places: the TransformerFactory, the Transformer, the Configuration, the Controller etc.

Unfortunately, though, it looks as if in this case Saxon is buried under several tons of other software sitting on top of it, and I can't help you drill down through that. It's almost certain that this superstructure has something to do with the problem, as well, since it all affects how relative URI references get resolved.

Michael Kay
Saxonica



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--