xsl-list
[Top] [All Lists]

RE: importing/including a stylesheet

2003-06-04 12:48:03


-----Original Message-----
From: florian [mailto:csshsh(_at_)structbench(_dot_)com]
Sent: Wednesday, June 04, 2003 12:39 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Cc: rob(_at_)koberg(_dot_)com


On Mittwoch, Juni 4, 2003, at 09:16  Uhr, Robert Koberg wrote:

Hi,

-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com 
[mailto:owner-xsl-
list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of florian
Sent: Wednesday, June 04, 2003 11:02 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com

hi!

i would like to include/import a stylesheet with a path given from the
directory of the stylesheet file which is doing the import/including..

is there any way to do that?

basically im having a java web application which runs inside a
servlet container...

any hints on how to do that?

By default it will be relative to the file rather than the directory.
Does
that help?

it would... but when i deploy the app in jboss its always relativ to my
jboss directory..

Then there is a bug in your XSL processor (or possibly jboss?). What XSL
processor are you using? 

If you are using Resin and it's processor, there is a known bug that should
be fixed in the latest snapshot release (haven't had a chance yet to try
it). 

You could also try to use a custom URIResolver setting the resolution
explicitly.

Best,
-Rob


if i have

myApp/WEB-INF/xsl/main.xsl

and

myApp/WEB-INF/xsl/foo.xsl

and import 'foo.xsl' from within main.xsl.. it wouldnt find foo.xsl,
since
it would look for a foo.xsl in the jboss root directory.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list