Subject:How to validate if file or directory exists? Author:Matt Adams Date:14 Oct 2004 04:00 PM
Assume there is an element like
<file attr="D:\test\proj12\log.txt" .... />
How do I validate resp. find out from inside a XSLT stylesheet
if the file mentioned in the attribute really exists?
Is there a function like
<value-of select="fileexists(//file[@attr])" />
Keep in mind. If I would write
<value-of select="exists(//file[@attr])" />
I would test if the attribute exists. That is not what I want.
I want to test the outside (from the XML doc) world existence of
a file defined by the attr value.