RE: Using document() to check the existance of a file

Subject: RE: Using document() to check the existance of a file
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Thu, 12 Oct 2000 09:27:25 +0100
> 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


Current Thread