xsl-list
[Top] [All Lists]

xsl:include href problems - again

2005-10-17 09:46:17
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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>