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>

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 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 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:16 UTC