This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]