[exslt] URL check

Norman Walsh ndw at nwalsh.com
Mon Aug 6 07:42:57 MDT 2001


/ "Michael Kay" <mhkay at iclway.co.uk> was heard to say:
| > One question I'm thinking about is: what should be the
| > criterion for an URL check?
| 
| This is the tricky part! I think what the user wants to know is that a call
| on document() would not cause a failure. That means the URL must exist, must
| be retrievable, and must identify a well-formed (and namespace-correct) XML
| document.
| 
| In fact, the best way of specifying it might be that the extension function
| is identical to document(), except that it is not allowed to signal an error
| if one or more documents cannot be retrieved/parsed.

I think that's probably best. Otherwise, you leave open the
possibility that the test will succeed but the resource will disappear
before the document() function is executed.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw at nwalsh.com> | Wisdom is only a comparative quality,
http://nwalsh.com/            | it will not bear a single
                              | definition.--Marquess of Halifax



More information about the exslt mailing list