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

Web Archive and xsl:include

Subject: Web Archive and xsl:include
From: "Anchal Jain" <ajain@xxxxxxxxxx>
Date: Mon, 25 Feb 2002 12:56:02 -0800
anchal jain
I have developed a Web application in Java using JSP's that performs XML
transformations (using Weblogic 5.1 and xalan.jar). The transformation works
fine till I package the UI files into a Web archive. If the stylesheet
doesn't include other stylesheets then the transformation goes through
smoothly. But if the stylesheet includes another stylesheet then the
transformation engine throws a "FileNotFound" exception. Instead of looking
for the included file in the "current" directory, it looks in the home
directory of the application server.

I am passing the stylesheet to the transformation engine in the following
manner:

 URL baseURL = m_sc.getResource("/stylesheets/" + baseFileName); //m_sc is
the ServletContext
 baseURLStr = baseURL.toString();

 XSLTProcessor processor =
     XSLTProcessorFactory.getProcessor(new
org.apache.xalan.xpath.xdom.XercesLiaison());

 parsedStylesheet =
     processor.processStylesheet( new XSLTInputSource(baseURLStr));


Is there a way to use stylesheets that have xsl:include in Web archives?

Anchal


 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.