This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: non-existing file in document() function
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Mon, 15 Apr 2002 09:44:12 +0100
- Subject: RE: [xsl] non-existing file in document() function
- Reply-to: xsl-list at lists dot mulberrytech dot com
There was a substantial thread on this topic last week: see the archives.
It's implementation-defined whether the processor terminates on this error
or recovers from it. With Java processors, you get the ability to control
the action by writing your own URIResolver. With MSXML, as far as I'm aware,
you don't.
Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com
> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Kunal H.
> Parikh
> Sent: 15 April 2002 01:18
> To: xsl-list@lists.mulberrytech.com
> Subject: [xsl] non-existing file in document() function
>
>
> Hi !
>
> I am trying to use the document function in my XSLT
>
> ****************
>
> document("authors.xml")
>
> ****************
>
> If the document "authors.xml" does not exist, I get an error from
> msxml3.dll saying
> "The system cannot find the path specified".
>
> Is there a way, to ignore, the situation if the file does not exist ?
>
>
> TIA,
>
> Kunal
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list