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

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 UTC