W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2002

Re: How to describe it with XML Schema ?

From: Jeni Tennison <jeni@jenitennison.com>
Date: Tue, 15 Jan 2002 16:11:00 +0000
Message-ID: <3718403249.20020115161100@jenitennison.com>
To: oliver.schramm@gmx.de
CC: xmlschema-dev@w3.org
Hi Oliver,

> The idea behind is that the element 'A' can EITHER have
> a reference to a document fragment OR the document
> fragement is part of the document instance (inline).
> [For my understanding]
> I can do that with the usage of 'derived types'. But
> I do not want to introduce the 'xsi:type' attribute.
> Currently I'm not sure if that is possible at all with
> XML Schema. It might be that someone has an idea.

I'm afraid that you cannot articulate this kind of constraint in XML
Schema without using xsi:type.

You might be interested in looking at Schematron or RELAX NG as schema
adjuncts, both of which can describe these kinds of co-occurrence



Jeni Tennison
Received on Tuesday, 15 January 2002 11:11:01 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:54 UTC