W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > July to September 2002

Re: [Moderator Action] Unique Particle Attribution and ECMA's CSTA phase 3 XML Schema

From: Eddie Robertsson <erobertsson@allette.com.au>
Date: Tue, 24 Sep 2002 09:38:45 +1000
Message-ID: <3D8FA605.5010502@allette.com.au>
To: "C. M. Sperberg-McQueen" <cmsmcq@acm.org>
CC: "Maggiulli, Patrick G (Patrick)" <pgm@avaya.com>, xmlschema-dev@w3.org, www-xml-schema-comments@w3.org

Hi,

>> 2)  Is there a way to express a complexType for ConnectionID
>> above that allows (callID OR deviceID OR (callID AND deviceID))?
>
>
> Yes.  Here is one way, that corresponds to (deviceID OR (callID AND
> OPTIONALLY deviceID)).
>
>   <xsd:complexType name="ConnectionID">
>     <xsd:choice>
>       <xsd:element name="callID" type="csta:CallID"/>
>       <xsd:element name="deviceID" type="csta:LocalDeviceID"/>
>       <xsd:sequence>
>         <xsd:element name="callID" type="csta:CallID"/>
>         <xsd:element name="deviceID" type="csta:LocalDeviceID"/>
>       </xsd:sequence>
>     </xsd:choice>
>   </xsd:complexType>

This is probably just a copy/paste error but I believe the correct 
definition should be:

<xsd:complexType name="ConnectionID">
    <xsd:choice>
      <xsd:element name="deviceID" type="csta:LocalDeviceID"/>
      <xsd:sequence>
        <xsd:element name="callID" type="csta:CallID"/>
        <xsd:element name="deviceID" type="csta:LocalDeviceID" 
minOccurs="0"/>
      </xsd:sequence>
    </xsd:choice>
</xsd:complexType>

Cheers,
/Eddie

> I hope this helps.
>
> -C. M. Sperberg-McQueen
>  World Wide Web Consortium
>
Received on Monday, 23 September 2002 19:39:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:01 GMT