W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2010

Difficult logical relationship in complex type

From: McBride, David <dmcbride@quicinc.com>
Date: Mon, 23 Aug 2010 09:39:37 -0700
To: "xmlschema-dev@w3.org" <xmlschema-dev@w3.org>
Message-ID: <9D1BAF3185DB1C4AB699D189522340EC06256D2117@NASCLEXMB01.na.qualcomm.com>
I'm having difficulties defining a logical relationship within a complex type.  The complex type contains 4 sub-elements.  Let's call them A, B, C, D.  The logical relationship is this:

1.       One, or more of elements B, C, or D are required.

2.       There may be zero or more instances of element A.

3.       Element A may never be the only element.  In other words, there may only be an instance of A, if there is also at least one instance of B, C, or D.

If I was just dealing with B, C, and D, I could handle that.  However, adding the requirements for A has thrown me.

Thanks for any responses, in advance.
Received on Tuesday, 24 August 2010 07:48:44 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:57 UTC