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

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

File WS-Topics-1_3.2.xsd, 8.7 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-Namespace Related  ================ -->   
50   <xsd:complexType name="TopicNamespaceType">
51     <xsd:complexContent>
52        <xsd:extension base="wstop:ExtensibleDocumented">
53          <xsd:sequence>
54            <xsd:element name="Topic"
55                         minOccurs="0" maxOccurs="unbounded">
56               <xsd:complexType>
57                 <xsd:complexContent>
58                   <xsd:extension base="wstop:TopicType">
59                     <xsd:attribute name="parent" type="wstop:ConcreteTopicExpression" />
60                   </xsd:extension>
61                 </xsd:complexContent>
62               </xsd:complexType>
63            </xsd:element>   
64            <xsd:any namespace="##other"
65                     minOccurs="0" maxOccurs="unbounded"
66                     processContents="lax"/>
67          </xsd:sequence>
68          <xsd:attribute name="name" type="xsd:NCName"/>
69          <xsd:attribute name="targetNamespace" type="xsd:anyURI"
70                         use="required"/>
71          <xsd:attribute name="final" type="xsd:boolean"
72                                      default="false"/>
73        </xsd:extension>
74      </xsd:complexContent>
75    </xsd:complexType>
76
77   <xsd:element name="TopicNamespace" type="wstop:TopicNamespaceType">
78     <xsd:unique name="rootTopicUniqueness">
79       <xsd:selector xpath="wstop:Topic"/>
80         <xsd:field xpath="@name"/>
81     </xsd:unique>
82   </xsd:element>
83  
84   <xsd:attribute name="topicNamespaceLocation" type="xsd:anyURI"/>
85
86 <!-- ===================== Topic Related  ========================= -->   
87
88   <xsd:complexType name="TopicType">
89     <xsd:complexContent>
90       <xsd:extension base="wstop:ExtensibleDocumented">
91         <xsd:sequence>
92           <xsd:element name="MessagePattern"
93                        type="wstop:QueryExpressionType"
94                        minOccurs="0" maxOccurs="1" />
95           <xsd:element name="Topic" type="wstop:TopicType"
96                        minOccurs="0" maxOccurs="unbounded">
97             <xsd:unique name="childTopicUniqueness">
98               <xsd:selector xpath="wstop:topic"/>
99               <xsd:field xpath="@name"/>
100             </xsd:unique>
101           </xsd:element>
102           <xsd:any namespace="##other" minOccurs="0"
103                                        maxOccurs="unbounded"/>
104         </xsd:sequence>
105         <xsd:attribute name="name" use="required" type="xsd:NCName"/>
106         <xsd:attribute name="messageTypes">
107           <xsd:simpleType>
108             <xsd:list itemType="xsd:QName"/>
109           </xsd:simpleType>
110         </xsd:attribute>
111         <xsd:attribute name="final" type="xsd:boolean"
112                                      default="false"/>
113       </xsd:extension>
114     </xsd:complexContent> 
115   </xsd:complexType>
116
117 <!-- ================ Topic Set Related  =================== -->   
118  
119   <xsd:complexType name="TopicSetType">
120     <xsd:complexContent>
121        <xsd:extension base="wstop:ExtensibleDocumented">
122          <xsd:sequence>
123            <xsd:any namespace="##other"
124                     minOccurs="0" maxOccurs="unbounded"
125                     processContents="lax"/>
126          </xsd:sequence>
127        </xsd:extension>
128      </xsd:complexContent>
129    </xsd:complexType>
130
131   <xsd:element name="TopicSet" type="wstop:TopicSetType"/>
132 <xsd:attribute name="topic" type="xsd:boolean" default="false"/>
133
134 <!-- ================ Topic Expression Related  =================== -->   
135  
136   <xsd:simpleType name="FullTopicExpression">
137     <xsd:restriction base="xsd:token">
138       <xsd:annotation>
139         <xsd:documentation>
140         TopicPathExpression  ::=   TopicPath ( '|' TopicPath )* 
141         TopicPath       ::=   RootTopic ChildTopicExpression*
142         RootTopic       ::=   NamespacePrefix? ('//')? (NCName | '*') 
143         NamespacePrefix ::=   NCName ':'     
144         ChildTopicExpression ::=   '/' '/'? (QName | NCName | '*'| '.')
145                        
146         </xsd:documentation>
147       </xsd:annotation>
148       <xsd:pattern value=
149          "([\i-[:]][\c-[:]]*:)?(//)?([\i-[:]][\c-[:]]*|\*)((/|//)(([\i-[:]][\c-[:]]*:)?[\i-[:]][\c-[:]]*|\*|[.]))*(\|([\i-[:]][\c-[:]]*:)?(//)?([\i-[:]][\c-[:]]*|\*)((/|//)(([\i-[:]][\c-[:]]*:)?[\i-[:]][\c-[:]]*|\*|[.]))*)*">
150       </xsd:pattern>
151     </xsd:restriction>
152   </xsd:simpleType>
153
154   <xsd:simpleType name="ConcreteTopicExpression">
155     <xsd:restriction base="xsd:token">
156       <xsd:annotation>
157         <xsd:documentation>
158   The pattern allows strings matching the following EBNF:
159     ConcreteTopicPath    ::=   RootTopic ChildTopic*   
160     RootTopic            ::=   QName 
161     ChildTopic           ::=   '/' (QName | NCName)
162                        
163         </xsd:documentation>
164       </xsd:annotation>
165       <xsd:pattern value=
166 "(([\i-[:]][\c-[:]]*:)?[\i-[:]][\c-[:]]*)(/([\i-[:]][\c-[:]]*:)?[\i-[:]][\c-[:]]*)*" >
167       </xsd:pattern>
168     </xsd:restriction>
169   </xsd:simpleType>
170
171   <xsd:simpleType name="SimpleTopicExpression">
172     <xsd:restriction base="xsd:QName">
173       <xsd:annotation>
174         <xsd:documentation>
175   The pattern allows strings matching the following EBNF:
176     RootTopic            ::=   QName 
177                        
178         </xsd:documentation>
179       </xsd:annotation>
180     </xsd:restriction>
181   </xsd:simpleType>
182
183 </xsd:schema>