bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XML-like date/time support ?


From: Richard Dawe
Subject: Re: XML-like date/time support ?
Date: Mon, 09 Jan 2006 20:13:33 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050923 Fedora/1.7.12-1.5.1

Hello.

Nicolas Mailhot wrote:
[snip]
W3C schema and relax NG are two grammars for specifying constraints on
an XML document. W3C schema is the oldest one and the only one everyone
supports. Relax NG is an newer alternative.

http://www.oasis-open.org/committees/relax-ng/spec-20011203.html

A lot of people are very very frustrated with W3C schema. However the
frustration is not related to the datatypes part, as far as I know every
single w3c schema datatype is reproduced as-is in relax NG.

My so far brief experience of XML schema vs. Relax NG comes down to this:

* It looks a lot simpler to express your document in Relax NG than XML schema. I haven't tried this myself, but a number of people at my work have and also say this.

* XML schema has no way of saying "allow this group of elements in any order". There are ways round that, but they produce a sub-optimal schema which can let errors through. Relax NG supports this natively.

* Relax NG's syntax looks a lot easier to remember. I keep having to look at "XML in a Nutshell"'s XML schema chapter, to write any XML schema.

Bye, Rich =]

--
Richard Dawe [ http://homepages.nildram.co.uk/~phekda/richdawe/ ]

"You can't evaluate a man by logic alone."
  -- McCoy, "I, Mudd", Star Trek




reply via email to

[Prev in Thread] Current Thread [Next in Thread]