[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: setting an URIResolver - who is correct, saxon or

Subject: RE: setting an URIResolver - who is correct, saxon or xalan
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Mon, 2 Jun 2003 09:05:23 +0100
transformer uriresolver
In my view the spec is ambiguous in this area. The spec for
setURIResolver() on the TransformerFactory says that the URIResolver is
used for xsl:import and xsl:include; the spec for getURIResolver()
implies that it is also used for the document() function.

I have asked for the spec to be clarified in this area and I believe
that Sun are aware of the problem.

Meanwhile, setting the URIResolver on both the TransformerFactory and
the Transformer should work with every processor.

Michael Kay


> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Robert Koberg
> Sent: 31 May 2003 16:32
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Cc: resin-interest@xxxxxxxxxx
> Subject:  setting an URIResolver - who is correct, saxon or xalan
> 
> 
> Hi,
> 
> I just figured out why I am having problems switching between 
> XSL processors, namely Xalan, Saxon and the Resin servlet 
> container's own Impl.
> 
> With Saxon I can set the URIResolver once on the 
> TransformerFactory and it is also used by the Transformer.
> 
> But with Xalan, I need to set the URIResolver on both the 
> TransformerFactory and the Transformer. 
> 
> I haven't tested Resin yet, but I would bet is the same as Xalan.
> 
> I can see benefits to both approaches, but I would hope for 
> standard way to do it. I will set them both, which works in 
> Saxon regardless. It seems correct to me that the Transformer 
> should inherit it's factory's resolver. It seems overkill to 
> set it twice since the transformer comes from the factory.
> 
> Have I simply stumbled on a Saxon 'feature' but really been 
> doing it wrong all this time?
> 
> Who is right? Or if there is no right way, what are your thoughts?
> 
> Best,
> -Rob
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.