- From: Eddie Robertsson <erobertsson@allette.com.au>
- Date: Tue, 24 Sep 2002 09:38:45 +1000
- 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 UTC