W3C home > Mailing lists > Public > w3c-dist-auth@w3.org > July to September 1998

WebDAV spec should explicit say WebDAV XML is not valid

From: Jim Davis <jdavis@parc.xerox.com>
Date: Thu, 23 Jul 1998 19:04:28 PDT
Message-Id: <3.0.3.32.19980723190428.009849e0@mailback.parc.xerox.com>
To: w3c-dist-auth@w3.org
As far as I can tell, the WebDAV spec never says explicitly that WebDAV XML
need not be valid.  It does say it must be well-formed (sections 3.4, 7),
and it does say that applications MUST ignore elements they do not
understand (sections 3.4, 13)  but it uses the magic word "valid".  Perhaps
it should say explicitly that it need not be valid, just to remove any doubt. 

And lest you have any doubt, the spec contains examples of invalid
(although well-formed) XML.  For example the prop XML element is defined as
ANY, and the  XML spec (section 3.2) says that ANY means "any declared
element type", but in general, client properties will not have been
declared in the DTD, hence this XML will be well formed but not valid.

It's also a pity that there's no way in XML (that I see) to declare an
element's contents to truly be "any".  This would allow you to validate
WebDAV XML in those places that mattered (e.g. propertybehavior) and not in
those places that are open ended (resourcetype).  But this can't be helped.

It would be a pity if applications tried to validate the XML and rejected
it.  We can forstall some confusion by stating plainly that the XML is not
expected to be valid.  Of course this also makes providing the XML DTD
somewhat pointless.
Received on Thursday, 23 July 1998 22:04:33 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 June 2009 18:43:47 GMT