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

Ticket #464: policy.xsd

File policy.xsd, 9.4 kB (added by user, 9 months ago)
Line 
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Legal Disclaimer
4
5 The presentation, distribution or other dissemination of the information
6 contained in this document is not a license, either expressly or impliedly,
7 to any intellectual property owned or controlled by IBM or Microsoft or BEA or SAP and\or any other
8 third party.  IBM and Microsoft and BEA or SAP and\or any other third party may have patents, patent
9 applications, trademarks, copyrights, or other intellectual property rights
10 covering subject matter in this document.  The furnishing of this document
11 does not give you any license to IBM's and Microsoft's and BEA or SAP or any other third party's patents,
12 trademarks, copyrights, or other intellectual property.
13
14 This document and the information contained herein is provided on an "AS IS"
15  basis and to the maximum extent permitted by applicable law, IBM and Microsoft and BEA or SAP provides
16 the document AS IS AND WITH ALL FAULTS, and hereby disclaims all other warranties
17 and conditions, either express, implied or statutory, including, but not limited
18 to, any (if any) implied warranties, duties or conditions of merchantability, of
19 fitness for a particular purpose, of accuracy or completeness of responses, of
20 results, of workmanlike effort, of lack of viruses, and of lack of negligence,
21 all with regard to the document. ALSO, THERE IS NO WARRANTY OR CONDITION OF
22 TITLE, QUIET ENJOYMENT, QUIET POSSESSION, CORRESPONDENCE TO DESCRIPTION OR
23 NON-INFRINGEMENT OF ANY INTELLECTUAL PROPERTY RIGHTS WITH REGARD TO THE DOCUMENT.
24
25 IN NO EVENT WILL IBM or MICROSOFT or BEA or SAP BE LIABLE TO ANY OTHER PARTY FOR THE COST OF PROCURING
26 SUBSTITUTE GOODS OR SERVICES, LOST PROFITS, LOSS OF USE, LOSS OF DATA, OR ANY
27 INCIDENTAL, CONSEQUENTIAL, DIRECT, INDIRECT, OR SPECIAL DAMAGES WHETHER UNDER
28 CONTRACT, TORT, WARRANTY, OR OTHERWISE, ARISING IN ANY WAY OUT OF THIS OR ANY
29 OTHER AGREEMENT RELATING TO THIS DOCUMENT, WHETHER OR NOT SUCH PARTY HAD ADVANCE
30 NOTICE OF THE POSSIBILITY OF SUCH DAMAGES.
31
32 Copyright Notice
33
34 Copyright 2001-2002 BEA Systems Inc. and IBM Corporation and Microsoft Corporation and SAP AG. All rights reserved.
35 -->
36 <xs:schema targetNamespace="http://schemas.xmlsoap.org/ws/2002/12/policy" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:wsp="http://schemas.xmlsoap.org/ws/2002/12/policy" xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility" elementFormDefault="qualified" blockDefault="#all">
37         <xs:import namespace="http://schemas.xmlsoap.org/ws/2002/07/utility" schemaLocation="utility.xsd"/>
38         <!-- //////////////////// WS-Policy ////////////////////////////// -->
39         <xs:attribute name="Usage" type="wsp:OpenUsageType"/>
40         <xs:simpleType name="OpenUsageType">
41                 <xs:annotation>
42                         <xs:documentation>Per GXA norms, we allow other values that are not pre-defined.</xs:documentation>
43                 </xs:annotation>
44                 <xs:union memberTypes="wsp:UsageType xs:QName"/>
45         </xs:simpleType>
46         <xs:simpleType name="UsageType">
47                 <xs:annotation>
48                         <xs:documentation>Pre-defined Usage types that apply to individual assertions. Per GXA norms, we use QNames rather than traditional token-based enumerations.</xs:documentation>
49                 </xs:annotation>
50                 <xs:restriction base="xs:QName">
51                         <xs:enumeration value="wsp:Required"/>
52                         <xs:enumeration value="wsp:Optional"/>
53                         <xs:enumeration value="wsp:Rejected"/>
54                         <xs:enumeration value="wsp:Ignored"/>
55                         <xs:enumeration value="wsp:Observed"/>
56                 </xs:restriction>
57         </xs:simpleType>
58         <xs:attribute name="Preference" type="xs:int"/>
59         <xs:element name="PolicyReference" type="wsp:PolicyReferenceType"/>
60         <xs:complexType name="PolicyReferenceType">
61                 <xs:sequence>
62                         <xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
63                 </xs:sequence>
64                 <xs:attribute name="URI" type="xs:anyURI" use="optional"/>
65                 <xs:attribute name="Ref" type="xs:QName" use="optional"/>
66                 <xs:attribute name="Digest" type="xs:base64Binary" use="optional"/>
67                 <xs:attribute name="DigestAlgorithm" type="xs:QName" use="optional"/>
68                 <xs:anyAttribute namespace="##any" processContents="lax"/>
69         </xs:complexType>
70         <xs:element name="All" type="wsp:Compositor"/>
71         <xs:element name="OneOrMore" type="wsp:Compositor"/>
72         <xs:element name="ExactlyOne" type="wsp:Compositor"/>
73         <xs:complexType name="Compositor">
74                 <xs:group ref="wsp:CompositorContent" maxOccurs="unbounded"/>
75                 <xs:attributeGroup ref="wsp:CompositorAndAssertionAttributes"/>
76         </xs:complexType>
77         <xs:group name="CompositorContent">
78                 <xs:choice>
79                         <xs:element ref="wsp:OneOrMore"/>
80                         <xs:element ref="wsp:All"/>
81                         <xs:element ref="wsp:ExactlyOne"/>
82                         <xs:element ref="wsp:PolicyReference"/>
83                         <xs:group ref="wsp:PolicyAssertions"/>
84                         <xs:any namespace="##other" processContents="lax"/>
85                         <!-- Include global elements from WS-PolicyAssertions -->
86                 </xs:choice>
87         </xs:group>
88         <xs:attributeGroup name="CompositorAndAssertionAttributes">
89                 <xs:attribute ref="wsp:Usage" use="optional"/>
90                 <xs:attribute ref="wsp:Preference" use="optional"/>
91                 <xs:attribute ref="wsu:Id" use="optional"/>
92                 <xs:anyAttribute namespace="##any" processContents="lax"/>
93         </xs:attributeGroup>
94         <xs:element name="Policy" type="wsp:PolicyExpression"/>
95         <xs:complexType name="PolicyExpression">
96                 <xs:group ref="wsp:CompositorContent" minOccurs="0" maxOccurs="unbounded"/>
97                 <xs:attribute name="Name" type="xs:NCName" use="optional"/>
98                 <xs:attribute name="TargetNamespace" type="xs:anyURI" use="optional"/>
99                 <xs:attribute ref="wsu:Id" use="optional"/>
100                 <xs:anyAttribute namespace="##any" processContents="lax"/>
101         </xs:complexType>
102         <!-- //////////////////// WS-PolicyAttachment ////////////////////////////// -->
103         <xs:attribute name="PolicyRefs" type="wsp:tPolicyRefs"/>
104         <xs:simpleType name="tPolicyRefs">
105                 <xs:annotation>
106                         <xs:documentation>Typedef to allow a list of policy names (as QNames).</xs:documentation>
107                 </xs:annotation>
108                 <xs:list itemType="xs:QName"/>
109         </xs:simpleType>
110         <xs:attribute name="PolicyURIs" type="wsp:tPolicyURIs"/>
111         <xs:simpleType name="tPolicyURIs">
112                 <xs:annotation>
113                         <xs:documentation>Typedef to allow a list of policy names (as URI).</xs:documentation>
114                 </xs:annotation>
115                 <xs:list itemType="xs:anyURI"/>
116         </xs:simpleType>
117         <xs:element name="UsingPolicy">
118                 <xs:annotation>
119                         <xs:documentation>Global element decl for use as a WSDL extension element</xs:documentation>
120                 </xs:annotation>
121                 <xs:complexType>
122                         <xs:sequence>
123                                 <xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
124                         </xs:sequence>
125                         <xs:anyAttribute namespace="##any" processContents="lax"/>
126                 </xs:complexType>
127         </xs:element>
128         <xs:element name="AppliesTo" type="wsp:AppliesTo"/>
129         <xs:complexType name="AppliesTo">
130                 <xs:sequence>
131                         <xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded">
132                                 <xs:annotation>
133                                         <xs:documentation>All children are interpreted as domain expressions.</xs:documentation>
134                                 </xs:annotation>
135                         </xs:any>
136                 </xs:sequence>
137                 <xs:anyAttribute namespace="##any" processContents="lax"/>
138         </xs:complexType>
139         <xs:element name="PolicyAttachment" type="wsp:PolicyAttachmentType"/>
140         <xs:complexType name="PolicyAttachmentType">
141                 <xs:sequence>
142                         <xs:element ref="wsp:AppliesTo"/>
143                
144                         <xs:choice maxOccurs="unbounded">
145                                 <xs:element ref="wsp:Policy"/>
146                                 <xs:element ref="wsp:PolicyReference"/>
147                         </xs:choice>
148                         <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
149                 </xs:sequence>
150                 <xs:anyAttribute namespace="##any" processContents="lax"/>
151         </xs:complexType>
152         <!-- //////////////////// WS-PolicyAssertions ////////////////////////////// -->
153         <xs:element name="Language" type="wsp:LanguageAssertion"/>
154         <xs:complexType name="LanguageAssertion">
155                 <xs:sequence>
156                         <xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
157                 </xs:sequence>
158                 <xs:attribute name="Language" type="xs:language" use="required"/>
159                 <xs:attributeGroup ref="wsp:CompositorAndAssertionAttributes"/>
160         </xs:complexType>
161         <xs:element name="TextEncoding" type="wsp:TextEncodingAssertion"/>
162         <xs:complexType name="TextEncodingAssertion">
163                 <xs:sequence>
164                         <xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
165                 </xs:sequence>
166                 <xs:attribute name="Encoding" type="xs:string" use="required"/>
167                 <xs:attributeGroup ref="wsp:CompositorAndAssertionAttributes"/>
168         </xs:complexType>
169         <xs:element name="SpecVersion" type="wsp:SpecVersionAssertion"/>
170         <xs:complexType name="SpecVersionAssertion">
171                 <xs:sequence>
172                         <xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
173                 </xs:sequence>
174                 <xs:attribute name="URI" type="xs:anyURI" use="required"/>
175                 <xs:attributeGroup ref="wsp:CompositorAndAssertionAttributes"/>
176         </xs:complexType>
177         <xs:element name="MessagePredicate" type="wsp:MessagePredicateAssertion"/>
178         <xs:complexType name="MessagePredicateAssertion">
179                 <xs:simpleContent>
180                         <xs:extension base="xs:string">
181                                 <xs:attribute name="Dialect" type="xs:anyURI" use="optional" default="http://www.w3.org/TR/1999/REC-xpath-19991116"/>
182                                 <xs:attributeGroup ref="wsp:CompositorAndAssertionAttributes"/>
183                         </xs:extension>
184                 </xs:simpleContent>
185         </xs:complexType>
186         <xs:group name="PolicyAssertions">
187                 <xs:choice>
188                         <xs:element ref="wsp:TextEncoding"/>
189                         <xs:element ref="wsp:Language"/>
190                         <xs:element ref="wsp:SpecVersion"/>
191                         <xs:element ref="wsp:MessagePredicate"/>
192                 </xs:choice>
193         </xs:group>
194 </xs:schema>