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

Re: URIResolver

Subject: Re: URIResolver
From: Robert Koberg <rob@xxxxxxxxxx>
Date: Tue, 20 Sep 2005 14:12:21 -0400
uriresolver transformer
Hi,

Kevin L. Cobb wrote:
This may be somewhat off topic for this list so I apoligize in advance.

I've implemented a URIResolver for my transformer calls. For some
reason, when I use the document('') XPATH expression function, the

it is an XSL function :)


URIResolver does not get called. Instread I get the error "(The system
cannot find the file specified)". What I've read says that document()
should use URIResolver. Perhaps it's the implenation I'm using?

Different java processors handle this differently (I tried to get this to be clarified in the jaxp spec but nothing came of it). I did some testing on this a while ago, but don't know if it is still relevant:


http://aspn.activestate.com/ASPN/Mail/Message/xsl-list/1821738

So, if the above info is still correct, you will need to set one resolver on the factory and one on the Transformer itself (it can be the same object instance). Or if you just need to resolve the document function, you could just set it on the transformer (assuming you are creating/reusing a Templates object).

best,
-Rob



<xsl:for-each select="document('facility_map.xml')"> <xsl:value-of select="key('facilityIDMap', $lookup)/@value"/> </xsl:for-each>

My Transformer Factory Implementation is:
org.apache.xalan.processor.TransformerFactoryImpl

-Kevin

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.