use relative paths...

File f = new File(); creates a pointer to orion directory. Therefore use
relative paths from there.
----- Original Message -----
From: "Christian Sell" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Wednesday, February 14, 2001 9:11 AM
Subject: Re: Why xsl:include seems to try to find files in /Orion folder a
nd not web-app root? ALMOST GOT IT!


> > Ok..I got some good news and bad news in my dilema. Using the
> > setSystemId(getServletContext().getRealPath(XSLFilename)); has indeed
> given
> > the right path when trying to access the xsl. However, for some unknown
> > reason I am STILL seeing it say:
> >
> > Error at xsl:include on line 5 of
> > file:/C:/orion/C:/app/www/inside/ob/search.xsl:
> > C:\orion\C:\app\www\inside\ob\include.xsl (The filename, directory name,
> or
> > volume label syntax is incorrect)
> > Exception while trying to transform document. MESSAGE = Failed to
compile
> > stylesheet. 1 error detected.
>
> looks like Xalan does not like the Windows-style path. Try turning this
into
> a valid URL (file://), possibly by using the URL class
>


Reply via email to