This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Using document() to check the existance of a file
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Using document() to check the existance of a file
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Thu, 12 Oct 2000 09:27:25 +0100
- Reply-To: xsl-list at mulberrytech dot com
> I'd like to check the existance of an file with the document function.
Unfortunately you can't do this in a standard way. It's an error for the
document function to reference a file that doesn't exist; the processor is
allowed to (but not required to) recover from the error by returning an
empty node-set.
With Saxon 5.5, you can control whether Saxon reports such errors and stops,
reports them and continues, or recovers silently: but if you rely on this,
your stylesheet won't be portable.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list