Attachment 'interop1v0.1.xsd'

Download

   1 <?xml version="1.0" encoding="UTF-8"?>
   2 <!--
   3   Copyright (c) 2006 The Apache Software Foundation or its licensors, as applicable.
   4 
   5   Licensed under the Apache License, Version 2.0 (the "License");
   6   you may not use this file except in compliance with the License.
   7   You may obtain a copy of the License at
   8 
   9      http://www.apache.org/licenses/LICENSE-2.0
  10 
  11   Unless required by applicable law or agreed to in writing, software
  12   distributed under the License is distributed on an "AS IS" BASIS,
  13   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14   See the License for the specific language governing permissions and
  15   limitations under the License.
  16  -->
  17 <schema xmlns="http://www.w3.org/2001/XMLSchema" 
  18         targetNamespace="http://www.apache.org/tuscany/interop" 
  19         xmlns:tns="http://www.apache.org/tuscany/interop"
  20         xmlns:sdo="commonj.sdo"
  21         xmlns:sdoJava="commonj.sdo">
  22         
  23   <import schemaLocation="datagraph.xsd" namespace="commonj.sdo"/>
  24   
  25   <annotation>
  26     <appinfo>SDO 2.0.1</appinfo>
  27     <documentation>
  28         A schema that includes many of the types described in the SDO sepcification 
  29         futher schemas appear in this series that contain schema constructs that 
  30         are mutually exclusive to the constructs contained in this file or that 
  31         are particular to specific language implementations of SDO
  32     </documentation>
  33   </annotation>
  34     
  35   <notation name="SDOInteropTestingSchema1" public="commonj.sdo">
  36 
  37   </notation>
  38         
  39   <!-- simple types -->
  40   <simpleType name="SimpleTypeWithNameType">
  41     <restriction base="string"/>
  42   </simpleType>
  43         
  44   <element name="SimpleTypeAnonymous">
  45     <simpleType>
  46       <restriction base="string"/>
  47     </simpleType>
  48   </element>  
  49   
  50   <simpleType name="SimpleTypeWithSDONameType" sdo:name="SimpleTypeWithSDONameTypeSDOName">
  51 	<restriction base="string"/>
  52   </simpleType>
  53   
  54   <!-- 
  55   <simpleType name="SimpleTypeWithAbstractType" abstract="true">
  56     <restriction base="string"/>
  57   </simpleType>
  58   -->
  59 
  60   <simpleType name="SimpleTypeWithInstanceClassType" sdoJava:instanceClass="String">
  61   	<restriction base="string"/>
  62   </simpleType>
  63   
  64   <simpleType name="SimpleTypeWithExtendedInstanceClassType" sdoJava:extendedInstanceClass="String">
  65   	<restriction base="string"/>
  66   </simpleType>
  67   
  68   
  69   <!-- complex types -->
  70   <complexType name="ComplexTypeNoContentType"/>
  71   
  72   <complexType name="ComplexTypeContentType">
  73     <sequence>
  74       <element name="SimpleTypeWithName" type="tns:SimpleTypeWithNameType"/>
  75     </sequence>
  76   </complexType>
  77   
  78   <element name="ComplexTypeAnonymousType">
  79     <complexType>
  80       <sequence>
  81         <element name="SimpleTypeWithName" type="tns:SimpleTypeWithNameType"/>
  82       </sequence>
  83     </complexType>
  84   </element>
  85   
  86   <complexType name="ComplexTypeWithSDONameType" sdo:name="ComplexTypeWithSDONameTypeSDOName">
  87     <sequence>
  88       <element name="SimpleTypeWithName" type="tns:SimpleTypeWithNameType"/>
  89     </sequence>
  90   </complexType>
  91   
  92   <complexType name="ComplexTypeWithAbstractType" abstract="true">
  93     <sequence>
  94       <element name="SimpleTypeWithName" type="tns:SimpleTypeWithNameType"/>
  95     </sequence>
  96   </complexType>
  97   
  98   <complexType name="ComplexTypeWithSDOAliasNameType" sdo:aliasName="ComplexTypeWithSDOAliasNameTypeSDOAliasName">
  99     <sequence>
 100       <element name="SimpleTypeWithName" type="tns:SimpleTypeWithNameType"/>
 101     </sequence>
 102   </complexType>  
 103   
 104   <complexType name="ComplexTypeExtendingComplexTypeType">
 105     <complexContent>
 106       <extension base="tns:ComplexTypeContentType">
 107         <sequence>
 108           <element name="SimpleTypeWithNameExtended" type="tns:SimpleTypeWithNameType"/>
 109         </sequence>
 110       </extension>
 111     </complexContent>  
 112   </complexType> 
 113   
 114   <complexType name="ComplexTypeExtendingSimpleTypeType">
 115     <simpleContent>
 116       <extension base="tns:SimpleTypeWithNameType">
 117 		<attribute name="AddedByExtension" type="string"/>
 118       </extension>
 119     </simpleContent>  
 120   </complexType> 
 121 
 122   <complexType name="ComplexTypeComplexContentRestrictingComplexTypeType">
 123     <complexContent>
 124       <restriction base="tns:ComplexTypeExtendingComplexTypeType">
 125         <sequence>
 126           <element name="SimpleTypeWithName" type="tns:SimpleTypeWithNameType"/>        
 127         </sequence>  
 128       </restriction>
 129     </complexContent>  
 130   </complexType>   
 131   
 132   <complexType name="ComplexTypeSimpleContentRestrictingComplexTypeType">
 133     <simpleContent>
 134       <restriction base="tns:ComplexTypeExtendingSimpleTypeType">
 135         <attribute name="AddedByExtension" type="NCName" />
 136       </restriction>
 137     </simpleContent>  
 138   </complexType>    
 139 
 140   <complexType name="ComplexTypeWithMixedType" mixed="true">
 141     <sequence>
 142       <element name="SimpleTypeWithName" type="tns:SimpleTypeWithNameType"/>
 143     </sequence>
 144   </complexType>
 145     
 146   <complexType name="ComplexTypeWithSDOSequenceType" sdo:name="true">
 147     <sequence>
 148       <element name="SimpleTypeWithName" type="tns:SimpleTypeWithNameType"/>
 149     </sequence>
 150   </complexType>
 151   
 152   <complexType name="ComplexTypeOpenContentType">
 153     <sequence>
 154       <any namespace="##any"/>
 155     </sequence>
 156   </complexType>  
 157   
 158   <complexType name="ComplexTypeOpenAttributesType">
 159     <sequence>
 160       <element name="SimpleTypeWithName" type="tns:SimpleTypeWithNameType"/>
 161     </sequence>
 162     <anyAttribute namespace="##any"/>
 163   </complexType>
 164   
 165   <!-- attributes -->
 166   <attribute name="AttributeReference" type="string"/> 
 167   
 168   <complexType name="ComplexTypeOppositePropertyTestType">
 169     <sequence>
 170     </sequence> 
 171     <attribute name="AttributeWithSDOPropertyType" type="IDREF" sdo:propertyType="tns:ComplexTypeAttributesTestType"/> 
 172   </complexType>    
 173   
 174   <complexType name="ComplexTypeAttributesTestType">
 175     <sequence>
 176     </sequence> 
 177     <attribute name="Attribute" type="string"/>
 178     <attribute name="AttributeWithSDOName" sdo:name="AttributeWithSDONameSDOName" type="string"/>
 179     <attribute name="AttributeWithSDOAliasName" sdo:aliasName="AttributeWithSDOAliasNameSDOAliasName" type="string"/>
 180     <attribute name="AttributeWithDefaultValue" type="string" default="AttributeWithDefaultValueDefaultValue"/>
 181     <attribute name="AttributeWithFixedValue" type="string" fixed="AttributeWithFixedValueFixedValue"/> 
 182     <attribute ref="tns:AttributeReference"/>   
 183     <attribute name="AttributeWithSDOString" type="string" sdo:string="true"/>     
 184     <attribute name="AttributeWithSDOPropertyType" type="IDREF" sdo:propertyType="tns:SimpleTypeWithNameType"/> 
 185     <attribute name="AttributeWithSDOPropertySDOOppositePropertyType" type="IDREF" sdo:propertyType="tns:SimpleTypeWithNameType" sdo:oppositeProperty="tns:AttributeWithSDOPropertyType"/>     
 186     <attribute name="AttributeWithSDODataType" sdo:dataType="string" type="string"/>
 187   </complexType>    
 188   
 189   <!-- elements -->
 190   <complexType name="ComplexTypeElementInAllTestType">
 191     <all>
 192       <element name="ElementInAllOne" type="string"/>
 193       <element name="ElementInAllTwo" type="string"/>      
 194     </all>
 195   </complexType>
 196   
 197   <complexType name="ComplexTypeSubstitutionGroupBaseType">
 198     <sequence>
 199       <element name="ElementInSubstitutionGroupBase" type="string"/>
 200     </sequence>
 201   </complexType>
 202   <element name="ElementSubstitutionGroupBase" type="tns:ComplexTypeSubstitutionGroupBaseType"/>
 203   
 204    <complexType name="ComplexTypeSubstitutionGroupExtendsType">
 205     <complexContent>
 206       <extension base="tns:ComplexTypeSubstitutionGroupBaseType">
 207         <sequence>
 208           <element name="ElementInSubstitutionGroupExtends" type="string"/>
 209         </sequence>
 210       </extension>
 211     </complexContent>
 212   </complexType>
 213   <element name="ElementSubstitutionGroupExtends" type="tns:ComplexTypeSubstitutionGroupExtendsType" substitutionGroup="tns:ElementSubstitutionGroupBase"/>
 214   
 215   <!-- built in data types -->
 216   
 217        
 218   <!-- top level test type -->       
 219   <complexType name="ComplexTypeRootType">
 220     <sequence>
 221       <!-- simple types -->
 222       <element name="SimpleTypeWithName" type="tns:SimpleTypeWithNameType"/>
 223       <element ref="tns:SimpleTypeAnonymous"/>  
 224       <element name="SimpleTypeWithSDOName" type="tns:SimpleTypeWithSDONameType"/>  
 225       <!--element name="SimpleTypeWithAbstract" type="tns:SimpleTypeWithAbstractType"/-->   
 226       <element name="SimpleTypeWithInstanceClass" type="tns:SimpleTypeWithInstanceClassType"/>       
 227       <element name="SimpleTypeWithExtendedInstanceClass" type="tns:SimpleTypeWithExtendedInstanceClassType"/>                               
 228       
 229       <!-- complex types -->
 230       <element name="ComplexTypeNoContent" type="tns:ComplexTypeNoContentType"/>
 231       <element name="ComplexTypeContent" type="tns:ComplexTypeContentType"/>
 232       <element ref="tns:ComplexTypeAnonymousType"/>
 233       <element name="ComplexTypeWithSDOName" type="tns:ComplexTypeWithSDONameType"/>      
 234       <element name="ComplexTypeWithSDOAliasName" type="tns:ComplexTypeWithSDOAliasNameType"/>      
 235       <element name="ComplexTypeExtendingComplexType" type="tns:ComplexTypeExtendingComplexTypeType"/>      
 236       <element name="ComplexTypeExtendingSimpeType" type="tns:ComplexTypeExtendingSimpleTypeType"/>            
 237       <element name="ComplexTypeComplexContentRestrictingComplexType" type="tns:ComplexTypeComplexContentRestrictingComplexTypeType"/>                  
 238       <element name="ComplexTypeSimpleContentRestrictingComplexType" type="tns:ComplexTypeSimpleContentRestrictingComplexTypeType"/>                        
 239       <element name="ComplexTypeWithMixed" type="tns:ComplexTypeWithMixedType"/>
 240       <element name="ComplexTypeWithSDOSequence" type="tns:ComplexTypeWithSDOSequenceType"/>
 241       <element name="ComplexTypeOpenContent" type="tns:ComplexTypeOpenContentType"/>      
 242       <element name="ComplexTypeOpenAttributes" type="tns:ComplexTypeOpenAttributesType"/>   
 243  
 244       <!-- attributes -->
 245       <element name="ComplexTypeOppositePropertyTest" type="tns:ComplexTypeOppositePropertyTestType"/>
 246       <element name="ComplexTypeAttributesTest" type="tns:ComplexTypeAttributesTestType"/>
 247       
 248       <!-- elements -->
 249       <element name="ElementWithSDOName" sdo:name="ElementWithSDONameSDOName" type="string"/>
 250       <element name="ElementWithSDOAliasName" sdo:aliasName="ElementWithSDOAliasNameSDOAliasName" type="string"/>
 251       <element name="ElementWithMaxOccurs" type="string" maxOccurs="2"/>
 252       <choice maxOccurs="3">
 253         <element name="ElementInChoice" type="string" maxOccurs="2"/>
 254       </choice>
 255       <element name="ElementInAll" type="tns:ComplexTypeElementInAllTestType"/>
 256       <element name="ElementWithNillable" type="string" nillable="true"/>      
 257       <element ref="tns:ElementSubstitutionGroupBase" />
 258       <element name="ElementOfSimpleTypeWithDefault" type="string" default="ElementOfSimpleTypeWithDefaultDefault" />
 259       <element name="ElementOfSimpleTypeWithFixed" type="string" fixed="ElementOfSimpleTypeWithFixedFixed" />      
 260       <element name="ElementOfSimpleTypeWithSDOString" type="string" sdo:string="true"/>      
 261       <element name="ElementOfSimpleTypeWithSDOPropertyType" type="IDREF" sdo:propertyType="tns:SimpleTypeWithNameType"/>      
 262       <element name="ElementOfSimpleTypeWithSDOOppositePropertyType" type="IDREF" sdo:propertyType="tns:SimpleTypeWithNameType" sdo:oppositeProperty="tns:ElementOfSimpleTypeWithSDOPropertyType"/>      
 263       <element name="ElementOfSimpleTypeWithSDODataType" type="string" sdo:dataType="string"/>       
 264       <element name="ElementOfSDOChangeSummaryType" type="sdo:ChangeSummaryType"/>                
 265   
 266       <!-- built in data types -->
 267       <element name="anySimpleType" type="anySimpleType"/>
 268       <element name="anyType" type="anyType"/>
 269       <element name="anyURI" type="anyURI"/>
 270       <element name="base64Binary" type="base64Binary"/>
 271       <element name="boolean" type="boolean"/>
 272       <element name="byte" type="byte"/>
 273       <element name="date" type="date"/>
 274       <element name="dateTime" type="dateTime"/>
 275       <element name="decimal" type="decimal"/>
 276       <element name="double" type="double"/>
 277       <element name="duration" type="duration"/>
 278       <element name="float" type="float"/>
 279       <element name="gDay" type="gDay"/>
 280       <element name="gMonth" type="gMonth"/>
 281       <element name="gMonthDay" type="gMonthDay"/>
 282       <element name="gYear" type="gYear"/>
 283       <element name="gYearMonth" type="gYearMonth"/>
 284       <element name="hexBinary" type="hexBinary"/>
 285       <element name="ID" type="ID"/>
 286       <element name="IDREF" type="IDREF"/>
 287       <element name="IDREFS" type="IDREFS"/>
 288       <element name="int" type="int"/>
 289       <element name="integer" type="integer"/>
 290       <element name="language" type="language"/>
 291       <element name="long" type="long"/>
 292       <element name="Name" type="Name"/>
 293       <element name="NCName" type="NCName"/>
 294       <element name="negativeInteger" type="negativeInteger"/>
 295       <element name="NMTOKEN" type="NMTOKEN"/>
 296       <element name="NMTOKENS" type="NMTOKENS"/>
 297       <element name="nonNegativeInteger" type="nonNegativeInteger"/>
 298       <element name="nonPositiveInteger" type="nonPositiveInteger"/>
 299       <element name="normalizedString" type="normalizedString"/>
 300       <element name="NOTATION" >
 301         <simpleType >
 302           <restriction base="NOTATION">
 303             <enumeration value="tns:SDOInteropTestingSchema1"/>
 304           </restriction>
 305         </simpleType>
 306       </element>
 307       <element name="positiveInteger" type="positiveInteger"/>
 308       <element name="QName" type="QName"/>
 309       <element name="short" type="short"/>
 310       <element name="string" type="string"/>
 311       <element name="time" type="time"/>
 312       <element name="token" type="token"/>
 313       <element name="unsignedByte" type="unsignedByte"/>
 314       <element name="unsignedInt" type="unsignedInt"/>
 315       <element name="unsignedLong" type="unsignedLong"/>
 316       <element name="unsignedShort" type="unsignedShort"/>
 317             
 318  <!-- need to test abstract -->
 319 
 320     </sequence>
 321   </complexType>
 322         
 323   <element name="RootElement" type="tns:ComplexTypeRootType"/>
 324 </schema>

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.

You are not allowed to attach a file to this page.