W3C home > Mailing lists > Public > xmlschema-dev@w3.org > April 2009

Re: How to improve XSD for a list with differently typed items + multiplicity and uniqueness constraints

From: Boris Kolpackov <boris@codesynthesis.com>
Date: Thu, 23 Apr 2009 08:50:10 +0200
To: gvt.junk@free.fr
Cc: xmlschema-dev@w3.org
Message-ID: <boris.20090423084704@codesynthesis.com>
Hi,

gvt.junk@free.fr <gvt.junk@free.fr> writes:

> Is there any chance to write an alternate XML schema that enforce all these
> rules, but produce "better-looking" compliant document that would look like 
> the following one, with reduced nesting levels?

Yes, you can do this with substitution groups and uniqueness constraints.

Boris

-- 
Boris Kolpackov, Code Synthesis Tools   http://codesynthesis.com/~boris/blog
Open source XML data binding for C++:   http://codesynthesis.com/products/xsd
Mobile/embedded validating XML parsing: http://codesynthesis.com/products/xsde
Received on Thursday, 23 April 2009 06:57:47 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:15:11 GMT