W3C home > Mailing lists > Public > www-tag@w3.org > January 2005

RelaxNG and versioning - example

From: Chris Lilley <chris@w3.org>
Date: Mon, 10 Jan 2005 22:12:02 +0100
Message-ID: <447049748.20050110221202@w3.org>
To: David Orchard <dorchard@bea.com>
Cc: www-tag@w3.org

Hello David,

On the tag call I suggested an example to discuss wrt RelaxNG and
versioning. You asked for an email about that, to remind you:

a) version n has an empty element foo

version n+1 has an attribute bar on element foo; if bar="baz" then the
content model is not empty but has a child toto.

b) version n has an attribute blah

version n+1 can either have an attribute blah or a child blah, but not

RelaxNG can express these sorts of co-constraint, as Norm confirmed on
the call.

(as a practical example, moving from a title attribute to having a title
child, that sort of thing)

 Chris Lilley                    mailto:chris@w3.org
 Chair, W3C SVG Working Group
 Member, W3C Technical Architecture Group
Received on Monday, 10 January 2005 21:12:02 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:56:07 UTC