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

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 UTC