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

Re: xsl:include href - relative to document root?

Subject: Re: xsl:include href - relative to document root?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 21 Jun 2005 15:32:47 +0100
href relative
> file relative to
> the webserver's document root?  From the documentation I've read
> it seems that the only way the href can be specified is either
> 
>   1. absolute - which for us means starting with a drive letter and
>                          continuing with a path to the file, or

The href is a normal URI so if it starts with / it is still a relative
URI and it will be taken from the root of the base URI of the current
stylesheet that contains the xsl:include statement. If this was loaded
from the filesystem then the href URI willbe taken relative to that. If
the current stylesheet has been loaded from an http address the same will
be true of the included stylesheet.

You can always (subject to any permission settings on your local setup)
use a full absolute URI http://a/b/c.xsl to load the included file from
anywhere on the internet.

>   2. relative - starting with "../" assuming the current position is
>                       the directory where the xsl file being rendered

If you start with ../ then of it starts in the parent directory of the
current stylesheet rather than the directory in which the stylesheet is
located, but yes any relative path such as href="zzz.xsl" will be
resolved relative to the base URI of the current stylesheet.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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.