Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

Ticket #480: WS-Topics-1_3.xsd

File WS-Topics-1_3.xsd, 8.8 kB (added by user, 6 months ago)
Line 
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3
4 OASIS takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; neither does it represent that it has made any effort to identify any such rights. Information on OASIS's procedures with respect to rights in OASIS specifications can be found at the OASIS website. Copies of claims of rights made available for publication and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementors or users of this specification, can be obtained from the OASIS Executive Director.
5
6 OASIS invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights which may cover technology that may be required to implement this specification. Please address the information to the OASIS Executive Director.
7
8 Copyright (C) OASIS Open (2004-2005). All Rights Reserved.
9
10 This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself may not be modified in any way, such as by removing the copyright notice or references to OASIS, except as needed for the purpose of developing OASIS specifications, in which case the procedures for copyrights defined in the OASIS Intellectual Property Rights document must be followed, or as required to translate it into languages other than English.
11
12 The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns.
13
14 This document and the information contained herein is provided on an "AS IS" basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
15
16 -->
17
18
19 <xsd:schema
20   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
21   xmlns:wstop = "http://docs.oasis-open.org/wsn/t-1"
22   targetNamespace = "http://docs.oasis-open.org/wsn/t-1"   
23   elementFormDefault="qualified"  attributeFormDefault="unqualified">
24
25 <!-- =============== utility type definitions  ==================== -->
26   <xsd:complexType name="Documentation" mixed="true">
27     <xsd:sequence>
28       <xsd:any processContents="lax" minOccurs="0"
29                maxOccurs="unbounded" namespace="##any"/>
30     </xsd:sequence>
31   </xsd:complexType>
32
33   <xsd:complexType name="ExtensibleDocumented" abstract="true"
34                    mixed="false">
35     <xsd:sequence>
36       <xsd:element name="documentation" type="wstop:Documentation"
37                    minOccurs="0" />
38     </xsd:sequence>
39     <xsd:anyAttribute namespace="##other" processContents="lax" />
40 </xsd:complexType>
41
42 <xsd:complexType name="QueryExpressionType" mixed="true">
43   <xsd:sequence>
44     <xsd:any minOccurs="0" maxOccurs="1" processContents="lax" />
45   </xsd:sequence>
46   <xsd:attribute name="Dialect" type="xsd:anyURI" use="required"/>
47 </xsd:complexType>
48
49 <!-- ===================== Topic Related  ========================= -->   
50
51   <xsd:complexType name="TopicType">
52     <xsd:complexContent>
53       <xsd:extension base="wstop:ExtensibleDocumented">
54         <xsd:sequence>
55           <xsd:element name="MessagePattern"
56                        type="wstop:QueryExpressionType"
57                        minOccurs="0" maxOccurs="1" />
58           <xsd:element name="Topic" type="wstop:TopicType"
59                        minOccurs="0" maxOccurs="unbounded">
60             <xsd:unique name="childTopicUniqueness">
61               <xsd:selector xpath="wstop:topic"/>
62               <xsd:field xpath="@name"/>
63             </xsd:unique>
64           </xsd:element>
65           <xsd:any namespace="##other" minOccurs="0"
66                                        maxOccurs="unbounded"/>
67         </xsd:sequence>
68         <xsd:attribute name="name" use="required" type="xsd:NCName"/>
69         <xsd:attribute name="messageTypes">
70           <xsd:simpleType>
71             <xsd:list itemType="xsd:QName"/>
72           </xsd:simpleType>
73         </xsd:attribute>
74         <xsd:attribute name="final" type="xsd:boolean"
75                                      default="false"/>
76       </xsd:extension>
77     </xsd:complexContent> 
78   </xsd:complexType>
79
80 <!-- ================== Topic-Namespace Related  ================ -->   
81   <xsd:complexType name="TopicNamespaceType">
82     <xsd:complexContent>
83        <xsd:extension base="wstop:ExtensibleDocumented">
84          <xsd:sequence>
85            <xsd:element name="Topic"
86                         minOccurs="0" maxOccurs="unbounded">
87               <xsd:complexType>
88                 <xsd:complexContent>
89                   <xsd:extension base="wstop:TopicType">
90                     <xsd:attribute name="parent" type="wstop:ConcreteTopicExpression" />
91                   </xsd:extension>
92                 </xsd:complexContent>
93               </xsd:complexType>
94            </xsd:element>   
95            <xsd:any namespace="##other"
96                     minOccurs="0" maxOccurs="unbounded"
97                     processContents="lax"/>
98          </xsd:sequence>
99          <xsd:attribute name="name" type="xsd:NCName"/>
100          <xsd:attribute name="targetNamespace" type="xsd:anyURI"
101                         use="required"/>
102          <xsd:attribute name="final" type="xsd:boolean"
103                                      default="false"/>
104        </xsd:extension>
105      </xsd:complexContent>
106    </xsd:complexType>
107
108   <xsd:element name="TopicNamespace" type="wstop:TopicNamespaceType">
109     <xsd:unique name="rootTopicUniqueness">
110       <xsd:selector xpath="wstop:Topic"/>
111         <xsd:field xpath="@name"/>
112     </xsd:unique>
113   </xsd:element>
114  
115   <xsd:attribute name="topicNamespaceLocation" type="xsd:anyURI"/>
116
117
118 <!-- ================ Topic Set Related  =================== -->   
119  
120   <xsd:complexType name="TopicSetType">
121     <xsd:complexContent>
122        <xsd:extension base="wstop:ExtensibleDocumented">
123          <xsd:sequence>
124            <xsd:any namespace="##other"
125                     minOccurs="0" maxOccurs="unbounded"
126                     processContents="lax"/>
127          </xsd:sequence>
128        </xsd:extension>
129      </xsd:complexContent>
130    </xsd:complexType>
131
132   <xsd:element name="TopicSet" type="wstop:TopicSetType"/>
133 <xsd:attribute name="topic" type="xsd:boolean" default="false"/>
134
135 <!-- ================ Topic Expression Related  =================== -->   
136  
137   <xsd:simpleType name="FullTopicExpression">
138     <xsd:restriction base="xsd:token">
139       <xsd:annotation>
140         <xsd:documentation>
141         TopicPathExpression  ::=   TopicPath ( '|' TopicPath )* 
142         TopicPath       ::=   RootTopic ChildTopicExpression*
143         RootTopic       ::=   NamespacePrefix? ('//')? (NCName | '*') 
144         NamespacePrefix ::=   NCName ':'     
145         ChildTopicExpression ::=   '/' '/'? (QName | NCName | '*'| '.')
146                        
147         </xsd:documentation>
148       </xsd:annotation>
149       <xsd:pattern value=
150          "([\i-[:]][\c-[:]]*:)?(//)?([\i-[:]][\c-[:]]*|\*)((/|//)(([\i-[:]][\c-[:]]*:)?[\i-[:]][\c-[:]]*|\*|[.]))*(\|([\i-[:]][\c-[:]]*:)?(//)?([\i-[:]][\c-[:]]*|\*)((/|//)(([\i-[:]][\c-[:]]*:)?[\i-[:]][\c-[:]]*|\*|[.]))*)*">
151       </xsd:pattern>
152     </xsd:restriction>
153   </xsd:simpleType>
154
155   <xsd:simpleType name="ConcreteTopicExpression">
156     <xsd:restriction base="xsd:token">
157       <xsd:annotation>
158         <xsd:documentation>
159   The pattern allows strings matching the following EBNF:
160     ConcreteTopicPath    ::=   RootTopic ChildTopic*   
161     RootTopic            ::=   QName 
162     ChildTopic           ::=   '/' (QName | NCName)
163                        
164         </xsd:documentation>
165       </xsd:annotation>
166       <xsd:pattern value=
167 "(([\i-[:]][\c-[:]]*:)?[\i-[:]][\c-[:]]*)(/([\i-[:]][\c-[:]]*:)?[\i-[:]][\c-[:]]*)*" >
168       </xsd:pattern>
169     </xsd:restriction>
170   </xsd:simpleType>
171
172   <xsd:simpleType name="SimpleTopicExpression">
173     <xsd:restriction base="xsd:QName">
174       <xsd:annotation>
175         <xsd:documentation>
176   The pattern allows strings matching the following EBNF:
177     RootTopic            ::=   QName 
178                        
179         </xsd:documentation>
180       </xsd:annotation>
181     </xsd:restriction>
182   </xsd:simpleType>
183
184 </xsd:schema>