• Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • ← Previous Change
  • Next Change →

Changeset 195 for Xml/Working/STD.xsd

Show
Ignore:
Timestamp:
09/10/08 12:03:10 (4 months ago)
Author:
andrew
Message:

Version presented in meeting 10th Sept 2008

Files:
1 modified

  • Xml/Working/STD.xsd (modified) (2 diffs)

Legend:

Unmodified
Added
Removed
  • Xml/Working/STD.xsd

    r189 r195  
    1616        #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    1717--> 
    18 <schema xmlns = "http://www.w3.org/2001/XMLSchema" 
     18<xsd:schema xmlns:xsd = "http://www.w3.org/2001/XMLSchema" 
    1919        targetNamespace = "http://www.openmicroscopy.org/Schemas/STD/2008-02" 
    2020        xmlns:STD = "http://www.openmicroscopy.org/Schemas/STD/2008-02" 
    … …  
    2222        version = "1" 
    2323        elementFormDefault = "qualified"> 
    24         <import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd"/> 
    25         <element name = "Element"> 
    26                 <annotation> 
    27                         <documentation>Describes a field of a SemanticType</documentation> 
    28                 </annotation> 
    29                 <complexType> 
    30                         <sequence> 
    31                                 <element ref = "STD:Label" minOccurs = "0" maxOccurs = "unbounded"/> 
    32                                 <element ref = "STD:Description" minOccurs = "0" maxOccurs = "unbounded"/> 
    33                         </sequence> 
    34                         <attribute name = "Name" use = "required"> 
    35                                 <simpleType> 
    36                                         <restriction base = "string"> 
    37                                                 <maxLength value = "64"/> 
    38                                         </restriction> 
    39                                 </simpleType> 
    40                         </attribute> 
    41                         <attribute name = "DBLocation" use = "optional" type = "string"/> 
    42                         <attribute name = "DataType" use = "required"> 
    43                                 <simpleType> 
    44                                         <restriction base = "string"> 
    45                                                 <enumeration value = "bigint"/> 
    46                                                 <enumeration value = "integer"/> 
    47                                                 <enumeration value = "smallint"/> 
    48                                                 <enumeration value = "double"/> 
    49                                                 <enumeration value = "float"/> 
    50                                                 <enumeration value = "boolean"/> 
    51                                                 <enumeration value = "string"/> 
    52                                                 <enumeration value = "reference"/> 
    53                                         </restriction> 
    54                                 </simpleType> 
    55                         </attribute> 
    56                         <attribute name = "RefersTo" type = "string"/> 
    57                 </complexType> 
    58         </element> 
    59         <element name = "SemanticType"> 
    60                 <annotation> 
    61                         <documentation> 
     24        <xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd"/> 
     25        <xsd:element name = "Element"> <!-- top level definition --> 
     26                <xsd:annotation> 
     27                        <xsd:documentation>Describes a field of a SemanticType</xsd:documentation> 
     28                </xsd:annotation> 
     29                <xsd:complexType> 
     30                        <xsd:sequence> 
     31                                <xsd:element ref = "STD:Label" minOccurs = "0" maxOccurs = "unbounded"/> 
     32                                <xsd:element ref = "STD:Description" minOccurs = "0" maxOccurs = "unbounded"/> 
     33                        </xsd:sequence> 
     34                        <xsd:attribute name = "Name" use = "required"> 
     35                                <xsd:simpleType> 
     36                                        <xsd:restriction base = "xsd:string"> 
     37                                                <xsd:maxLength value = "64"/> 
     38                                        </xsd:restriction> 
     39                                </xsd:simpleType> 
     40                        </xsd:attribute> 
     41                        <xsd:attribute name = "DBLocation" use = "optional" type = "xsd:string"/> 
     42                        <xsd:attribute name = "DataType" use = "required"> 
     43                                <xsd:simpleType> 
     44                                        <xsd:restriction base = "xsd:string"> 
     45                                                <xsd:enumeration value = "bigint"/> 
     46                                                <xsd:enumeration value = "integer"/> 
     47                                                <xsd:enumeration value = "smallint"/> 
     48                                                <xsd:enumeration value = "double"/> 
     49                                                <xsd:enumeration value = "float"/> 
     50                                                <xsd:enumeration value = "boolean"/> 
     51                                                <xsd:enumeration value = "string"/> 
     52                                                <xsd:enumeration value = "reference"/> 
     53                                        </xsd:restriction> 
     54                                </xsd:simpleType> 
     55                        </xsd:attribute> 
     56                        <xsd:attribute name = "RefersTo" use="optional" type = "xsd:string"/> 
     57                </xsd:complexType> 
     58        </xsd:element> 
     59        <xsd:element name = "SemanticType"> <!-- top level definition --> 
     60                <xsd:annotation> 
     61                        <xsd:documentation> 
    6262                                Defines a semantic type. 
    6363                                Notes: 
    6464                                Granularity of SemanticType is infered from the granularity of the record it derives from. In a record, this granularity is specified by the AppliesTo attribute. 
    65                         </documentation> 
    66                 </annotation> 
    67                 <complexType> 
    68                         <sequence> 
    69                                 <element ref = "STD:Label" minOccurs = "0" maxOccurs = "unbounded"/> 
    70                                 <element ref = "STD:Description" minOccurs = "0" maxOccurs = "unbounded"/> 
    71                                 <element ref = "STD:Element" maxOccurs = "unbounded"/> 
    72                         </sequence> 
    73                         <attribute name = "Name" use = "required"> 
    74                                 <simpleType> 
    75                                         <restriction base = "string"> 
    76                                                 <maxLength value = "64"/> 
    77                                         </restriction> 
    78                                 </simpleType> 
    79                         </attribute> 
    80                         <attribute name = "Parent" use = "optional"> 
    81                                 <simpleType> 
    82                                         <restriction base = "string"> 
    83                                                 <maxLength value = "64"/> 
    84                                         </restriction> 
    85                                 </simpleType> 
    86                         </attribute> 
    87                         <attribute name = "AppliesTo" use = "required"> 
    88                                 <annotation> 
    89                                         <documentation>This specifies what this record is an attribute of. The options are Global, Dataset, Image, or Region (was called Feature hence letter F). 
    90                                         </documentation> 
    91                                 </annotation> 
    92                                 <simpleType> 
    93                                         <restriction base = "string"> 
    94                                                 <enumeration value = "G"/> 
    95                                                 <enumeration value = "D"/> 
    96                                                 <enumeration value = "I"/> 
    97                                                 <enumeration value = "F"/> 
    98                                                 <length value = "1"/> 
    99                                         </restriction> 
    100                                 </simpleType> 
    101                         </attribute> 
    102                 </complexType> 
    103                 <unique name = "SemanticElement"> 
    104                         <selector xpath = "STD:SemanticElement"/> 
    105                         <field xpath = "@Name"/> 
    106                 </unique> 
    107         </element> 
    108         <element name = "SemanticTypeDefinitions"> 
    109                 <annotation> 
    110                         <documentation>Describes semantic types that can be derived from custom attributes. </documentation> 
    111                 </annotation> 
    112                 <complexType> 
    113                         <sequence> 
    114                                 <element ref = "STD:SemanticType" maxOccurs = "unbounded"/> 
    115                         </sequence> 
    116                 </complexType> 
    117                 <unique name = "SemanticTypeName"> 
    118                         <selector xpath = "STD:SemanticType"/> 
    119                         <field xpath = "@SemanticTypeName"/> 
    120                 </unique> 
    121         </element> 
    122         <attribute name = "SemanticTypeName"> 
    123                 <simpleType> 
    124                         <restriction base = "string"> 
    125                                 <maxLength value = "64"/> 
    126                         </restriction> 
    127                 </simpleType> 
    128         </attribute> 
    129         <element name = "Description"> 
    130                 <annotation> 
    131                         <documentation> 
     65                        </xsd:documentation> 
     66                </xsd:annotation> 
     67                <xsd:complexType> 
     68                        <xsd:sequence> 
     69                                <xsd:element ref = "STD:Label" minOccurs = "0" maxOccurs = "unbounded"/> 
     70                                <xsd:element ref = "STD:Description" minOccurs = "0" maxOccurs = "unbounded"/> 
     71                                <xsd:element ref = "STD:Element" maxOccurs = "unbounded"/> 
     72                        </xsd:sequence> 
     73                        <xsd:attribute name = "Name" use = "required"> 
     74                                <xsd:simpleType> 
     75                                        <xsd:restriction base = "xsd:string"> 
     76                                                <xsd:maxLength value = "64"/> 
     77                                        </xsd:restriction> 
     78                                </xsd:simpleType> 
     79                        </xsd:attribute> 
     80                        <xsd:attribute name = "Parent" use = "optional"> 
     81                                <xsd:simpleType> 
     82                                        <xsd:restriction base = "xsd:string"> 
     83                                                <xsd:maxLength value = "64"/> 
     84                                        </xsd:restriction> 
     85                                </xsd:simpleType> 
     86                        </xsd:attribute> 
     87                        <xsd:attribute name = "AppliesTo" use = "required"> 
     88                                <xsd:annotation> 
     89                                        <xsd:documentation>This specifies what this record is an attribute of. The options are Global, Dataset, Image, or Region (was called Feature hence letter F). 
     90                                        </xsd:documentation> 
     91                                </xsd:annotation> 
     92                                <xsd:simpleType> 
     93                                        <xsd:restriction base = "xsd:string"> 
     94                                                <xsd:enumeration value = "G"/> 
     95                                                <xsd:enumeration value = "D"/> 
     96                                                <xsd:enumeration value = "I"/> 
     97                                                <xsd:enumeration value = "F"/> 
     98                                                <xsd:length value = "1"/> 
     99                                        </xsd:restriction> 
     100                                </xsd:simpleType> 
     101                        </xsd:attribute> 
     102                </xsd:complexType> 
     103                <xsd:unique name = "SemanticElement"> 
     104                        <xsd:selector xpath = "STD:SemanticElement"/> 
     105                        <xsd:field xpath = "@Name"/> 
     106                </xsd:unique> 
     107        </xsd:element> 
     108        <xsd:element name = "SemanticTypeDefinitions"> <!-- top level definition --> 
     109                <xsd:annotation> 
     110                        <xsd:documentation>Describes semantic types that can be derived from custom attributes. </xsd:documentation> 
     111                </xsd:annotation> 
     112                <xsd:complexType> 
     113                        <xsd:sequence> 
     114                                <xsd:element ref = "STD:SemanticType" minOccurs="1" maxOccurs = "unbounded"/> 
     115                        </xsd:sequence> 
     116                </xsd:complexType> 
     117                <xsd:unique name = "SemanticTypeName"> 
     118                        <xsd:selector xpath = "STD:SemanticType"/> 
     119                        <xsd:field xpath = "@SemanticTypeName"/> 
     120                </xsd:unique> 
     121        </xsd:element> 
     122        <xsd:attribute name = "SemanticTypeName"> <!-- top level definition --> 
     123                <xsd:simpleType> 
     124                        <xsd:restriction base = "xsd:string"> 
     125                                <xsd:maxLength value = "64"/> 
     126                        </xsd:restriction> 
     127                </xsd:simpleType> 
     128        </xsd:attribute> 
     129        <xsd:element name = "Description"> <!-- top level definition --> 
     130                <xsd:annotation> 
     131                        <xsd:documentation> 
    132132                                Just some human-readable text to serve as documentation. 
    133                         </documentation> 
    134                 </annotation> 
    135                 <complexType> 
    136                         <simpleContent> 
    137                                 <extension base = "string"> 
    138                                         <attribute ref = "xml:lang" default = "en"/> 
    139                                 </extension> 
    140                         </simpleContent> 
    141                 </complexType> 
    142         </element> 
    143         <element name = "Label"> 
    144                 <complexType> 
    145                         <simpleContent> 
    146                                 <extension base = "string"> 
    147                                         <attribute ref = "xml:lang" default = "en"/> 
    148                                 </extension> 
    149                         </simpleContent> 
    150                 </complexType> 
    151         </element> 
    152 </schema> 
     133                        </xsd:documentation> 
     134                </xsd:annotation> 
     135                <xsd:complexType> 
     136                        <xsd:simpleContent> 
     137                                <xsd:extension base = "xsd:string"> 
     138                                        <xsd:attribute ref = "xml:lang" default = "en" use="optional"/> 
     139                                </xsd:extension> 
     140                        </xsd:simpleContent> 
     141                </xsd:complexType> 
     142        </xsd:element> 
     143        <xsd:element name = "Label"> <!-- top level definition --> 
     144                <xsd:complexType> 
     145                        <xsd:simpleContent> 
     146                                <xsd:extension base = "xsd:string"> 
     147                                        <xsd:attribute ref = "xml:lang" default = "en" use="optional"/> 
     148                                </xsd:extension> 
     149                        </xsd:simpleContent> 
     150                </xsd:complexType> 
     151        </xsd:element> 
     152</xsd:schema> 

Download in other formats:

  • Unified Diff
  • Zip Archive

Trac Powered

Powered by Trac 0.11
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/