Subject: RE: how to test if a file exists ? From: ogerardin.cs@xxxxxxxxxxxxxxx Date: Thu, 29 Jun 2000 14:06:19 +0200 |
Quick ideas (not elaborated): 1) use extension functions to actually check the existence of the file or 2) build an XML file containing the list of available graphic files, and access it through the document() function to test if a given reference is valid. Using 2) does not bind you to a specific XT processor, and is probably more efficient. Of course, it's only dependable if the graphic files change infrequently. Olivier > ---------- > From: Jean-Claude Tarby[SMTP:Jean-Claude.Tarby@xxxxxxxxxxxxx] > Reply To: xsl-list@xxxxxxxxxxxxxxxx > Sent: Thursday, June 29, 2000 12:58 > To: xsl-list@xxxxxxxxxxxxxxxx > Subject: how to test if a file exists ? > > I want to include links to graphic files in a html document which is > produced by a stylesheet, but I want to put the link only if the graphic > file exists on the hard disk. How to do that ? > > J.C. > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: how to test if a file exists ?, Warren Hedley | Thread | Dynamic conversion from XML to HTML, Vinay Jaiswal |
Re: how to test if a file exists ?, Matt Sergeant | Date | Re: Namespace nodes in XSLT and XPa, David Carlisle |
Month |