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

xsl:include href problems - again

Subject: xsl:include href problems - again
From: "Hardy Merrill" <HMerrill@xxxxxxxxxxxxxxxx>
Date: Mon, 17 Oct 2005 12:46:17 -0400
include href
Ok, there was a thread about this a while back, but I'd like to open it up
again - I have some more info that might help (you list readers) resolve
this.

We're on a Windows 2003 IIS server with MSXML, rendering XML files with XSL
using ASP scripts.

Here are the pertinent files on the server's filesystem:

     http://our.developmentserver.com    =    A:\our_document_root

     A:\our_document_root\includes\new_banner.xsl
     A:\our_document_root\includes\new_footer.xsl


I have a stylesheet in the document root which renders fine when I do these:

    <xsl:include href="includes/new_banner.xsl"/>
    <xsl:include href="includes/new_footer.xsl"/>


But does NOT work (***and I don't understand why***) if I add the leading
slash like this:

    <xsl:include href="/includes/new_banner.xsl"/>
    <xsl:include href="/includes/new_footer.xsl"/>

that produces just a blank screen - no error.


I don't want to do this (doesn't work anyway and I don't know why, but might
be
a permission issue with the "includes" directory):

    <xsl:include
href="http://our.developmentserver.com/includes/new_banner.xsl"/>
    <xsl:include
href="http://our.developmentserver.com/includes/new_footer.xsl"/>

because then when I migrate this xsl to our "test" and "prod" servers I'd have
to
change the "our.developmentserver.com" to "our.testserver.com" and so on.

I'm looking for a way to have the include href's refer to things relative to
the document
root, without having to name the specific server in an http string.  Is this
possible?

TIA.

Hardy Merrill

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.