[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] xsl:include href problems - again
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|