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

RE: Import HREF

Subject: RE: Import HREF
From: "Passin, Tom" <tpassin@xxxxxxxxxxxx>
Date: Tue, 10 Jun 2003 14:19:48 -0400
import href
[Karl J. Stubsjoen]
> 
> With xsl:import... the following HREF specification resolves 
> to a file in my
> utility folder off of my root directory:
> href="../../../utility/dbXMLContent_T.xsl"
> 
> I don't believe this can be written as:
> href="//utility/dbXMLContent_T.xsl"
> 

You are right, that is invalid.

> But is there any other way to get to the root folder of the web page?
> 

You can have either a relative URL or an absolute one.  A relative URL
depends on where the invoking page is (so your first for will work for
calling documents that are in the right directory, but not for others in
different locations).

What do you mean by the "root folder of the web page"?  And what are you
trying to accomplish that is not working now?  Do you want to put a
stylesheet PI into an XML file?

If you are going to refer to the stylesheet from a lot of different
locations, you could put it in a "stylesheet" directory just under the
server's root (or under some virtual root below that).  Then it would be
easy to use a known path, like this -

href='/stylesheets/project1/dbXMLContent_T.xsl'

Cheers,

Tom P

 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.