[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] document() function can't follow virtual directory path in MSXML3?


Subject: [xsl] document() function can't follow virtual directory path in MSXML3?
From: Brook Ellingwood <brook@xxxxxxxxxxx>
Date: Thu, 14 Aug 2003 10:38:15 -0700

Hi,

I'm wondering if anyone has seen this behavior in MSXML3 and if they might
know whether there's a workaround.

I'm storing my XML in a folder outside the www root to meet the host's
security requirements. I follow a virtual directory path to access it. This
works fine, except when I try to call an XML doc via the document()
function, like so:

    <xsl:if test="document('/virdir/home.xml')">
    <font color="white">foo</font>
    </xsl:if> 

I always get this:
    msxml3.dll error '80070003'
    The system cannot find the path specified.
    /index.asp, line 13

I know the path is valid, and I can use in my .asp with no problems. If it
comes down to it, I can always get what I need by moving some formatting to
the .asp, but I was really hoping to keep all the formatting in the
stylesheets.

Any ideas on what might be causing this, or is it just a limitation of
MSXML3 that I have to live with?

Thanks,

-- Brook


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
Keywords
xml