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