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

RE: Dynamic path in xsl:import

Subject: RE: Dynamic path in xsl:import
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 12 Sep 2005 08:58:02 +0100
xsl dynamic import
Using the term "dynamic" is perhaps unfortunate, as it suggests you want to
do the import at run-time, which isn't possible. But I don't think that's
what you need here.

First, try to do it with relative URIs. So long as all the stylesheet
modules have the same relative locations in the two directory structures
this should work fine.

If there's some reason relative URIs won't do the job (I can't think of one
off-hand), you can write your own URIResolver that takes the URI specified
in the href attribute and returns a JAXP Source object containing the
stylesheet module. That gives you complete flexibility.

Michael Kay
http://www.saxonica.com/

> -----Original Message-----
> From: SINGH Navpreet [mailto:Navpreet.SINGH@xxxxxxxxx] 
> Sent: 12 September 2005 00:33
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Dynamic path in xsl:import
> 
> Hi,
> Developing an application that uses number of xslt files to 
> transform XML. Main XSLT file has many xsl:import statements. 
> Application needs to be deployed on the tomcat server. Tomcat 
> could be on installed on separate location on two different 
> machines. How can I give a dynamic path for child xslt files 
> in the xsl:import statements depending upon server location?
> Thanks,
> Navpreet. 

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.