Re: [xml-dev] Schema: defining occurences in choices?

From
Jeni Tennison <>
To
"Emmerich, Martin" <>
Date
2002-12-18T19:00:39Z
ID
<>
Thread
Re: [xml-dev] Schema: defining occurences in choices?
Hi Martin,

> What I need are several rules like:
> name = "value1" --> there must be a "subcontent1" with
> "subchoice1a", annother "subcontent1" with "subchoice1b" can occur
> and "subcontent2" can occur.
>
> I understand your mail that that is not possible to specify such
> constraints in plain schema. Am I correct? Do I always need an
> external rule engine like Schematron or Relax NG for that?

Yes. W3C XML Schema is limited in this regard.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/