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

RE: Relative paths in xsl:import Was: Parameter in "xs

Subject: RE: Relative paths in xsl:import Was: Parameter in "xsl:include"
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Tue, 3 Apr 2001 11:27:21 +0100
xsl import relative
> Is there any practical way to give a "relative" location in the
> xsl:import's href attribute? As far as I can understand, the current
> working directory during the compilation of the style sheet can not be
> known beforehand. Therefore, relative paths can not be used. However,
> if I need to compile the stylesheet on some arbitrary environment, I
> can not use absolute file locations.

If your stylesheet is one.xsl, and you want to import two.xsl which is in
the same directory as one.xsl, you can write <xsl:import href="two.xsl"/>.

The relative URI is interpreted relative to the stylesheet location, not
relative to the current working directory.

Mike Kay
Software AG


 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.