[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: importing/including a stylesheet

Subject: RE: importing/including a stylesheet
From: "Robert Koberg" <rob@xxxxxxxxxx>
Date: Wed, 4 Jun 2003 12:48:03 -0700
jboss stylesheet

> -----Original Message-----
> From: florian [mailto:csshsh@xxxxxxxxxxxxxxx]
> Sent: Wednesday, June 04, 2003 12:39 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Cc: rob@xxxxxxxxxx
> 
> 
> On Mittwoch, Juni 4, 2003, at 09:16  Uhr, Robert Koberg wrote:
> 
> > Hi,
> >
> >> -----Original Message-----
> >> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-
> >> list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of florian
> >> Sent: Wednesday, June 04, 2003 11:02 AM
> >> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> >>
> >> 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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.