W3C home > Mailing lists > Public > w3c-dist-auth@w3.org > October to December 2003

RE: DAV Schema Assessment (was Re: rfc2518bis DAV DTD ...)

From: Julian Reschke <julian.reschke@gmx.de>
Date: Thu, 16 Oct 2003 23:50:23 +0200
To: "Julian Reschke" <julian.reschke@gmx.de>, <dennis.hamilton@acm.org>, "Stanley Guan" <stanley.guan@oracle.com>, <w3c-dist-auth@w3.org>
Message-ID: <JIEGINCHMLABHJBIGKBCCEFCINAA.julian.reschke@gmx.de>

OK,

I just spend a few minutes with Jing (Relax NG validator) and Trang (Schema
Language convertor) [1]. Some initial thoughts:

- RelaxNG can express WebDAV's extensibility model
- RelaxNG has both an XML based syntax ( la XML Schema) and a Compact
syntax ( la DTD)
- Trang supports to/from DTD, XML Schema, RelaxG (compact/XML) and (!)
sample XML instance data
- RelaxNG supports the XML schema datatypes

Here's an example for dav:propfind in RNC (Relax NG Compact Syntax):

namespace dav = "DAV:"

start = propfind

allprop = element dav:allprop { empty }

prop =
  element dav:prop {
    element * { empty }+
  }
propname = element dav:propname { empty }
propfind = element dav:propfind { (allprop | prop | propname) & EXT? }

EXT =
  element * - (dav:allprop
               | dav:href
               | dav:multistatus
               | dav:prop
               | dav:propfind
               | dav:propname
               | dav:response
               | dav:status) { empty }

...you get the idea.

Should we pursue this?

Julian


[1] <http://www.relaxng.org/>

--
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760
Received on Thursday, 16 October 2003 17:50:48 GMT

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