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

<xsl:include href="cant_be_found_on_linux.xsl"/>???

Subject: <xsl:include href="cant_be_found_on_linux.xsl"/>???
From: "Robert Koberg" <rob@xxxxxxxxxx>
Date: Sun, 27 May 2001 09:14:04 -0700
getservletconfig web inf
Hi,

I am having problems with included stylesheets.  I have a "wrapper" XSL that
includes the different parts of the pages, like so:

<xsl:include href="head.xsl"/>

The wrapper.xsl is in the same directory as head.xsl. These files reside
under the WEB-INF directory (so they are hidden) in resin (basically the
same as tomcat):

/WEB-INF/_xml/wrapper.xsl
/WEB-INF/_xml/head.xsl

The pages are transformed with servlets located in the class direcory under
WEB-INF using xalan. This works fine if I do a simple XSL/XML transform (1
xsl and 1 xml, no includes). The page is also transformed if I use the
command line.

Works as expected on windows (xalan-j_2_1_0, resin 1.2.5)
Problem with Linux (xalan-j_2_1_0, resin 1.2.5):
When the servlets start the transformation I get the following error:
File "file:////usr/resin//usr/resin/doc/WEB-INF/_xml/head.xsl" not found. -
yada yada

So it is prepending the path to root directory (doc).  This only happens
when I use servlets on linux. The error occurs in the XSLT process not in
the serlvet.  WHat can I do so that linux can see my included files?

Here is how I get the path to the WEB-INF folder so I can get wrapper.xsl
(which is working):

String APPLICATION_ROOT =
getServletConfig().getServletContext().getRealPath("/WEB-INF");

Thanks,
Rob


 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.