Chris Ward wrote:
2) I'm using XSLT stylesheets by loading through a URL (i.e. not File) .
3) I am including another XSLT using a RELATIVE path
<xsl:include href="Common.xsl"/>
4) It goes bang - can't find the Common.xsl since it's looking the
the "wrong" place.
I had a similar problem once and implemented the URIResolver interface
to set the base location for the file path
and look for the file w.r.t that. All includes are then resolved
relative to that.
Assuming you are using the XSLT TransformerFactory class, then set the
URIResolver object:
TransformerFactory transformerFactory =
TransformerFactoryImpl.newInstance();
XsltURIResolver uriResolver = new XsltURIResolver(context);
transformerFactory.setURIResolver(uriResolver);
Pramod Biligiri
--
http://xprssit.com/user/pramod
--~------------------------------------------------------------------
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>
--~--