W3C home > Mailing lists > Public > public-qt-comments@w3.org > March 2004

[F&O] LQ-FO-002 - file exists

From: Liam Quin <liam@w3.org>
Date: Thu, 4 Mar 2004 13:07:16 -0500
To: public-qt-comments@w3.org
Message-ID: <20040304180716.GC16963@w3.org>

There's no easy way right now to check for the existance of a
local file except by trying to parse (and possibly validate) it
with document().

For example, consider using XML Query to generate an XHTML
Web page with embedded images.  One might not want to
include an image if the file isn't there, but there's no
way to test for a non-XML file in F&O today.

I suggest adding
    file-exists($fname as XS:string)

An alternative I shall propose in a separate comment is to
provide more access to an implementation's underlying
URI resolver library.


Liam Quin, W3C XML Activity Lead, http://www.w3.org/People/Quin/
Received on Thursday, 4 March 2004 13:38:41 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:18 UTC