This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: include statement
- From: Markus Spath <mspath at arcor dot de>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Tue, 05 Mar 2002 09:09:34 +0100
- Subject: Re: [xsl] include statement
- References: <OFB0D93199.F7237E74-ON85256B72.008242C5@mapinfo.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Kevin.Gutch@mapinfo.com wrote:
> Here is the issue. My include statement is now inoperable. The XSL
> Processor is looking for the included file in the directory where the
> program was executed from (i.e. bin). I can think of some work arounds but
> the problem still exists that this xsl file is in a jar file and I really
> have no way of telling the stylesheet this. I could remove the style sheet
> from the jar file and then navigate out of the bin directory as such
> ./../xml/ but this seems counterproductive. Does anyone have any insight to
> what is going on?
you probably need tp provide your own URIResolver (from the javax.xml.transform
package).
just a tip: if you put all your stylesheets unjared somewhere in
.../WEB-INF/xsl/ , you always can access them using:
(a ServletContext instance) context.getResource("/WEB-INF/xsl/name.xsl"), then
the URIResolver provided by default will do. they won't be visible to clients
there -if this is your concern.
markus
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list