W3C home > Mailing lists > Public > xmlschema-dev@w3.org > June 2001

Re: Choice of subelements by attribute value?

From: Bjoern Martin <mabj0011@fh-karlsruhe.de>
Date: Fri, 22 Jun 2001 17:40:09 +0200
To: xmlschema-dev@w3.org
Message-Id: <E15DT2X-000Ake-00@rz06.fh-karlsruhe.de>
> > I wondered if there is a possibility to restrict the appearance
> > of certain subelements of an element by the value of an attribute.
> > Example:
> No, not in XML Schemas 1.0.  This is called a co-constraint and
> won't be available until later versions.  Currently the best you
> can do is to allow all of the possible elements and create an
> application rule in some other manner -- or use a different schema
> language.  The best way is to mix XML Schema and Schematron.  There
> is a great example of how to do this at:
> http://www.xfront.com/ExtendingSchemas.html

I'll try that. Thx to you both.


Received on Friday, 22 June 2001 11:40:14 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:14:51 UTC