W3C home > Mailing lists > Public > xsl-editors@w3.org > January to March 2002

Fwd: Re: [Sab] document() function

From: Philipp Gühring <p.guehring@futureware.at>
Date: Sun, 20 Jan 2002 10:01:26 -0500 (EST)
Message-Id: <200201201501.g0KF12x01642@linux1.futureware.at>
To: xsl-editors@w3.org
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

- From a discussion about document() and not existant files:

> The W3C document reads:
>
> If there is an error retrieving the resource, then the XSLT processor
> may signal an error; if it does not signal an error, it must recover by
> returning an empty node-set.

Then I would plea for recovering. Please change it to recovering behaviour or
make it chooseable.

It would help a lot for application development.

Just imagine Word (or any other desktop application) would crash, if you
would try to open a not existing file.

Errors should be non-recoverable, recoverable problems should not be flagged
as errors, and be recoverd if not security relevant.

Please please please please please make it recoverable.

Or at least make it questionable:

<xsl:if test="document('file')">

Which would return false, if the file does not exist.

Many greetings,
- -- 
~ Philipp Gühring              p.guehring@futureware.at
~ http://www.livingxml.net/       ICQ UIN: 6588261
~ <xsl:value-of select="file:/home/philipp/.sig"/>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8StunlqQ+F+0wB3oRAuYyAJ9bBPnDzQN/EMuF/j6lC+X7AZkofACfZmpm
4VU+/QZvL7IZjK/1K9rImSY=
=/ohJ
-----END PGP SIGNATURE-----
Received on Sunday, 20 January 2002 13:33:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:52 GMT