I have very little experience of using Java for XML but in .NET you need to pass
the resolver twice, once when loading the XSLT to facilitate xsl:include/import
and once when transforming to resolve calls to document(). the difference being
that the former are resolved on loding, the latter at the instant of
transformation.
(There is also an issue with security, document() is not allowed by default by
untrusted callers, I don't know if this applies with xalan.)
Joe
----- Original Message -----
From: "Kevin L. Cobb" <kevin(_dot_)cobb(_at_)emergint(_dot_)com>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Tuesday, September 20, 2005 6:22 PM
Subject: [xsl] URIResolver
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
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?
<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
--~------------------------------------------------------------------
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>
--~--
--~------------------------------------------------------------------
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>
--~--