OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

ws-caf message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: RE: [ws-caf] Issue 278


Dear Kevin,

The mechanism of wrapping the 'any' element with and extra level may well be
the best approach.  However you could also consider adding an empty
'divider' element (or whatever you would prefer to call it.  This approach
simplifies the schema slightly to something like:

xs:complexType name="RegistrationContextType">
  <xs:complexContent>
    <xs:extension base="wsctx:ContextType">
      <xs:sequence>
        <xs:element name="registration-service" type="ref:ServiceRefType"/>
        <xs:element name="sub-protocol" type="xs:anyURI" minOccurs="0"
maxOccurs="unbounded"/>
        <xs:element name="participant-service" type="ref:ServiceRefType"
minOccurs="0" maxOccurs="unbounded"/>
        <xs:element name="divider">
            <xs:complexType/>
        </xs:element>
        <xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
      </xs:sequence>
    </xs:extension>
  </xs:complexContent>
 </xs:complexType>


Best Regards     Tony
A M Fletcher
Tel: +44 (0) 1473 729537   Mobile: +44 (0) 7801 948219
 tony.fletcher@choreology.com    amfletcher@iee.org       (also
tony_fletcher@btopenworld.com)
 


-----Original Message-----
From: Kevin Conner [mailto:Kevin.Conner@arjuna.com] 
Sent: 08 September 2005 15:57
To: WS-CAF
Subject: Re: [ws-caf] Issue 278


Kevin Conner wrote:
> The cf context structure would look as follows: -
> 
> <xs:complexType name="RegistrationContextType">  <xs:complexContent>
>    <xs:extension base="wsctx:ContextType">
>      <xs:sequence>
>        <xs:element name="registration-service" type="ref:ServiceRefType"/>
>        <xs:element name="sub-protocol" type="xs:anyURI" minOccurs="0"
maxOccurs="unbounded"/>
>        <xs:element name="participant-service" type="ref:ServiceRefType"
minOccurs="0" maxOccurs="unbounded"/>
>        <xs:element name="extension" minOccurs="0"
type="tns:ExtensionType"/>
>      </xs:sequence>
>    </xs:extension>
>  </xs:complexContent>
> </xs:complexType>
> 
> <xs:complexType name="ExtensionType">
>  <xs:sequence>
>    <xs:any namespace="##other" maxOccurs="unbounded"/>  </xs:sequence>
> </xs:complexType>

Try that again, without the extra linefeeds this time :-)

	Kev

-- 
Kevin Conner
Arjuna Technologies Ltd.



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]