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: checking for existence of a file?


You could use http://www.bayes.co.uk/xml/index.xml?/xml/utils/dirtoxml.xml
load the resulting xml with document() and check if the file is there.
Ciao Chris

>-----Original Message-----
>From: owner-xsl-list@mulberrytech.com
>[mailto:owner-xsl-list@mulberrytech.com]On Behalf Of DuCharme, Robert
>Sent: 31 July 2000 17:13
>To: 'xsl-list@mulberrytech.com'
>Subject: RE: checking for existence of a file?
>
>
>>Is it possible to have my XSL check for the existence of a
>>[directory]\filename and only apply a particular template (or portion of
>it)
>>if the file exists?  (I want to check for the existence of the file for my
>>hyperlinks and only create the link if the file is actually there.)
>
>The XSLT spec intentionally avoids I/O issues to leave as much flexibility
>to the XSLT implementation.  So, it depends on which XSLT processor you're
>using. If it doesn't offer this exact feature, it may offer a simple way to
>call the appropriate function in another language (e.g. Java) to check for
>the target file's existence.
>
>Bob DuCharme          www.snee.com/bob           <bob@
>snee.com>  "The elements be kind to thee, and make thy
>spirits all of comfort!" Anthony and Cleopatra, III ii
>
>
> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 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]