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

Context Navigation

  • ← Previous Change
  • Next Change →

Changeset 205 for Xml/Working/ome.xsd

Show
Ignore:
Timestamp:
09/18/08 14:23:44 (4 months ago)
Author:
andrew
Message:

Merge changes from the roi and sa version of ome-roi-sa.xsd back into ome.xsd

Files:
1 modified

  • Xml/Working/ome.xsd (modified) (102 diffs)

Legend:

Unmodified
Added
Removed
  • Xml/Working/ome.xsd

    r189 r205  
    2424        xmlns:CA="http://www.openmicroscopy.org/Schemas/CA/2008-02"  
    2525        xmlns:SPW="http://www.openmicroscopy.org/Schemas/SPW/2008-02"  
     26        xmlns:SA="http://www.openmicroscopy.org/Schemas/SA/2008-02"  
    2627        xmlns:xml="http://www.w3.org/XML/1998/namespace" 
    2728        version="2"  
    … …  
    3031        <xsd:import namespace="http://www.openmicroscopy.org/Schemas/STD/2008-02" schemaLocation="http://www.openmicroscopy.org/Schemas/STD/2008-02/STD.xsd"/> 
    3132        <xsd:import namespace="http://www.openmicroscopy.org/Schemas/BinaryFile/2008-02" schemaLocation="http://www.openmicroscopy.org/Schemas/BinaryFile/2008-02/BinaryFile.xsd"/> 
    32         <xsd:import namespace="http://www.openmicroscopy.org/Schemas/CA/2008-02" schemaLocation="http://www.openmicroscopy.org/Schemas/CA/2008-02/CA.xsd"/> 
     33        <xsd:import namespace="http://www.openmicroscopy.org/Schemas/CA/2008-02" schemaLocation="CA.xsd"/> 
    3334        <xsd:import namespace="http://www.openmicroscopy.org/Schemas/SPW/2008-02" schemaLocation="http://www.openmicroscopy.org/Schemas/SPW/2008-02/SPW.xsd"/> 
     35        <xsd:import namespace="http://www.openmicroscopy.org/Schemas/SA/2008-02" schemaLocation="SA.xsd"/> 
    3436        <xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd"/> 
     37         
    3538        <xsd:annotation> 
    3639                <xsd:documentation> 
    … …  
    4144                </xsd:documentation> 
    4245        </xsd:annotation> 
    43         <xsd:element name="OME"> 
     46        <xsd:element name="OME"> <!-- top level definition --> 
    4447                <xsd:annotation> 
    4548                        <xsd:documentation> 
    … …  
    6164                                <xsd:element ref="Instrument" minOccurs="0" maxOccurs="unbounded"/> 
    6265                                <xsd:element ref="Image" minOccurs="0" maxOccurs="unbounded"/> 
    63                                 <xsd:element ref="STD:SemanticTypeDefinitions" minOccurs="0"/> 
    64                                 <xsd:element ref="AML:AnalysisModuleLibrary" minOccurs="0"/> 
    65                                 <xsd:element ref="CA:CustomAttributes" minOccurs="0"/> 
     66                                <xsd:element ref="STD:SemanticTypeDefinitions" minOccurs="0" maxOccurs="1"/> 
     67                                <xsd:element ref="AML:AnalysisModuleLibrary" minOccurs="0" maxOccurs="1"/> 
     68                                <xsd:element ref="CA:CustomAttributes" minOccurs="0" maxOccurs="1"/> 
     69                                <xsd:element ref="SA:StructuredAnnotations" minOccurs="0" maxOccurs="1"/> 
    6670                        </xsd:sequence> 
    67                                 <xsd:attribute name="UUID" type="UniversallyUniqueIdentifier"/> 
    68                 </xsd:complexType> 
    69         </xsd:element> 
    70         <xsd:element name="Image"> 
     71                        <xsd:attribute name="UUID" type="UniversallyUniqueIdentifier" use="optional"/> 
     72                </xsd:complexType> 
     73        </xsd:element> 
     74        <xsd:element name="Image"> <!-- top level definition --> 
    7175                <xsd:annotation> 
    7276                        <xsd:documentation> 
    … …  
    8892                <xsd:complexType> 
    8993                        <xsd:sequence> 
    90                                 <xsd:element ref="CreationDate"/> 
    91                                 <xsd:element ref="ExperimenterRef" minOccurs="0"/> 
    92                                 <xsd:element ref="Description" minOccurs="0"/> 
    93                                 <xsd:element ref="ExperimentRef" minOccurs="0"/> 
    94                                 <xsd:element ref="GroupRef" minOccurs="0"/> 
     94                                <xsd:element ref="CreationDate" minOccurs="1" maxOccurs="1"/> 
     95                                <xsd:element ref="ExperimenterRef" minOccurs="0" maxOccurs="1"/> 
     96                                <xsd:element ref="Description" minOccurs="0" maxOccurs="1"/> 
     97                                <xsd:element ref="ExperimentRef" minOccurs="0" maxOccurs="1"/> 
     98                                <xsd:element ref="GroupRef" minOccurs="0" maxOccurs="1"/> 
    9599                                <xsd:element ref="DatasetRef" minOccurs="0" maxOccurs="unbounded"/> 
    96                                 <xsd:element ref="InstrumentRef" minOccurs="0"/> 
    97                                 <xsd:element ref="ObjectiveRef" minOccurs="0"/> 
    98                                 <xsd:element ref="ImagingEnvironment" minOccurs="0"/> 
    99                                 <xsd:element ref="Thumbnail" minOccurs="0"/> 
     100                                <xsd:element ref="InstrumentRef" minOccurs="0" maxOccurs="1"/> 
     101                                <xsd:element ref="ObjectiveRef" minOccurs="0" maxOccurs="1"/> 
     102                                <xsd:element ref="ImagingEnvironment" minOccurs="0" maxOccurs="1"/> 
     103                                <xsd:element ref="Thumbnail" minOccurs="0" maxOccurs="1"/> 
    100104                                <xsd:element ref="LogicalChannel" minOccurs="0" maxOccurs="unbounded"/> 
    101                                 <xsd:element ref="DisplayOptions" minOccurs="0"/> 
    102                                 <xsd:element ref="StageLabel" minOccurs="0"/> 
    103                                 <xsd:element ref="Pixels" maxOccurs="unbounded"/> 
     105                                <xsd:element ref="DisplayOptions" minOccurs="0" maxOccurs="1"/> 
     106                                <xsd:element ref="StageLabel" minOccurs="0" maxOccurs="1"/> 
     107                                <xsd:element ref="Pixels" minOccurs="1" maxOccurs="unbounded"/> 
    104108                                <xsd:element ref="Region" minOccurs="0" maxOccurs="unbounded"/> 
    105                                 <xsd:element ref="CA:CustomAttributes" minOccurs="0"/> 
     109                                <xsd:element ref="CA:CustomAttributes" minOccurs="0" maxOccurs="1"/> 
    106110                                <xsd:element ref="ROI" minOccurs="0" maxOccurs="unbounded"/> 
    107111                                <xsd:element ref="MicrobeamManipulation" minOccurs="0" maxOccurs="unbounded"/> 
    … …  
    117121                                </xsd:annotation> 
    118122                        </xsd:attribute> 
    119                         <xsd:attribute name="AcquiredPixels" type="PixelsID"> 
     123                        <xsd:attribute name="AcquiredPixels" use="optional" type="PixelsID"> 
    120124                                <xsd:annotation> 
    121125                                        <xsd:documentation> 
    … …  
    128132                </xsd:complexType> 
    129133        </xsd:element> 
    130         <xsd:element name="CreationDate" type="xsd:dateTime"> 
     134        <xsd:element name="CreationDate" type="xsd:dateTime"> <!-- top level definition --> 
    131135                <xsd:annotation> 
    132136                        <xsd:documentation> 
    … …  
    136140                </xsd:annotation> 
    137141        </xsd:element> 
    138         <xsd:element name="Pixels"> 
     142        <xsd:element name="Pixels"> <!-- top level definition --> 
    139143                <xsd:annotation> 
    140144                        <xsd:documentation> 
    … …  
    148152                <xsd:complexType> 
    149153                        <xsd:sequence> 
    150                                 <xsd:choice maxOccurs="unbounded"> 
    151                                         <xsd:element ref="Bin:BinData"/> 
    152                                         <xsd:element ref="TiffData"/> 
     154                                <xsd:choice minOccurs="1" maxOccurs="unbounded"> 
     155                                        <xsd:element ref="Bin:BinData" minOccurs="1" maxOccurs="1"/> 
     156                                        <xsd:element ref="TiffData" minOccurs="1" maxOccurs="1"/> 
    153157                                </xsd:choice> 
    154158                                <xsd:element ref="Plane" minOccurs="0" maxOccurs="unbounded"/> 
    … …  
    198202                                </xsd:annotation> 
    199203                        </xsd:attribute> 
    200                         <xsd:attribute name="PhysicalSizeX" type="xsd:float"> 
     204                        <xsd:attribute name="PhysicalSizeX" use="optional" type="xsd:float"> 
    201205                                <xsd:annotation> 
    202206                                        <xsd:documentation>Physical size of a pixel</xsd:documentation> 
    203207                                </xsd:annotation> 
    204208                        </xsd:attribute> 
    205                         <xsd:attribute name="PhysicalSizeY" type="xsd:float"> 
     209                        <xsd:attribute name="PhysicalSizeY" use="optional" type="xsd:float"> 
    206210                                <xsd:annotation> 
    207211                                        <xsd:documentation>Physical size of a pixel</xsd:documentation> 
    208212                                </xsd:annotation> 
    209213                        </xsd:attribute> 
    210                         <xsd:attribute name="PhysicalSizeZ" type="xsd:float"> 
     214                        <xsd:attribute name="PhysicalSizeZ" use="optional" type="xsd:float"> 
    211215                                <xsd:annotation> 
    212216                                        <xsd:documentation>Physical size of a pixel</xsd:documentation> 
    213217                                </xsd:annotation> 
    214218                        </xsd:attribute> 
    215                         <xsd:attribute name="TimeIncrement" type="xsd:float"/> 
    216                         <xsd:attribute name="WaveStart" type="xsd:positiveInteger"/> 
    217                         <xsd:attribute name="WaveIncrement" type="xsd:positiveInteger"/> 
    218                 </xsd:complexType> 
    219         </xsd:element> 
    220         <xsd:element name="TiffData"> 
     219                        <xsd:attribute name="TimeIncrement" use="optional" type="xsd:float"/> 
     220                        <xsd:attribute name="WaveStart" use="optional" type="xsd:positiveInteger"/> 
     221                        <xsd:attribute name="WaveIncrement" use="optional" type="xsd:positiveInteger"/> 
     222                </xsd:complexType> 
     223        </xsd:element> 
     224        <xsd:element name="TiffData"> <!-- top level definition --> 
    221225                <xsd:annotation> 
    222226                        <xsd:documentation> 
    … …  
    226230                <xsd:complexType> 
    227231                        <xsd:sequence> 
    228                                 <xsd:element name="UUID" minOccurs="0"> 
     232                                <xsd:element name="UUID" minOccurs="0" maxOccurs="1"> 
    229233                                        <xsd:annotation> 
    230234                                                <xsd:documentation> 
    … …  
    236240                                                <xsd:simpleContent> 
    237241                                                        <xsd:extension base = "UniversallyUniqueIdentifier"> 
    238                                                                 <xsd:attribute name="FileName" type="xsd:string"> 
     242                                                                <xsd:attribute name="FileName" use="optional" type="xsd:string"> 
    239243                                                                        <xsd:annotation> 
    240244                                                                                <xsd:documentation> 
    … …  
    253257                                </xsd:element> 
    254258                        </xsd:sequence> 
    255                         <xsd:attribute name="IFD" type="xsd:integer" default="0"> 
     259                        <xsd:attribute name="IFD" type="xsd:integer" default="0" use="optional"> 
    256260                                <xsd:annotation> 
    257261                                        <xsd:documentation> 
    … …  
    261265                                </xsd:annotation> 
    262266                        </xsd:attribute> 
    263                         <xsd:attribute name="FirstZ" type="xsd:integer" default="0"> 
     267                        <xsd:attribute name="FirstZ" type="xsd:integer" default="0" use="optional"> 
    264268                                <xsd:annotation> 
    265269                                        <xsd:documentation> 
    … …  
    269273                                </xsd:annotation> 
    270274                        </xsd:attribute> 
    271                         <xsd:attribute name="FirstT" type="xsd:integer" default="0"> 
     275                        <xsd:attribute name="FirstT" type="xsd:integer" default="0" use="optional"> 
    272276                                <xsd:annotation> 
    273277                                        <xsd:documentation> 
    … …  
    277281                                </xsd:annotation> 
    278282                        </xsd:attribute> 
    279                         <xsd:attribute name="FirstC" type="xsd:integer" default="0"> 
     283                        <xsd:attribute name="FirstC" type="xsd:integer" default="0" use="optional"> 
    280284                                <xsd:annotation> 
    281285                                        <xsd:documentation> 
    … …  
    285289                                </xsd:annotation> 
    286290                        </xsd:attribute> 
    287                         <xsd:attribute name="NumPlanes" type="xsd:integer"> 
     291                        <xsd:attribute name="NumPlanes" use="optional" type="xsd:integer"> 
    288292                                <xsd:annotation> 
    289293                                        <xsd:documentation> 
    … …  
    297301        </xsd:element> 
    298302         
    299         <xsd:element name="Plane"> 
     303        <xsd:element name="Plane"> <!-- top level definition --> 
    300304                <xsd:annotation> 
    301305                        <xsd:documentation> 
    … …  
    314318                                                </xsd:documentation> 
    315319                                        </xsd:annotation> 
    316                                         <xsd:element name="HashSHA1" type="Hex40"/> 
     320                                        <xsd:element name="HashSHA1" type="Hex40" minOccurs="1" maxOccurs="1"/> 
    317321                                </xsd:choice> 
    318322                        </xsd:sequence> 
    … …  
    351355        </xsd:complexType> 
    352356         
    353         <xsd:element name="Experiment"> 
     357        <xsd:element name="Experiment"> <!-- top level definition --> 
    354358                <xsd:annotation> 
    355359                        <xsd:documentation> 
    … …  
    364368                <xsd:complexType> 
    365369                        <xsd:sequence> 
    366                                 <xsd:element ref="Description" minOccurs="0"/> 
    367                                 <xsd:element ref="ExperimenterRef"> 
     370                                <xsd:element ref="Description" minOccurs="0" maxOccurs="1"/> 
     371                                <xsd:element ref="ExperimenterRef" minOccurs="1" maxOccurs="1"> 
    368372                                        <xsd:annotation> 
    369373                                                <xsd:documentation> 
    … …  
    403407                </xsd:complexType> 
    404408        </xsd:element> 
    405         <xsd:element name="ExperimentRef"> 
     409        <xsd:element name="ExperimentRef"> <!-- top level definition --> 
    406410                <xsd:complexType> 
    407411                        <xsd:complexContent> 
    … …  
    413417        </xsd:element> 
    414418 
    415         <xsd:element name="MicrobeamManipulation"> 
     419        <xsd:element name="MicrobeamManipulation"> <!-- top level definition --> 
    416420                <xsd:annotation> 
    417421                        <xsd:documentation> 
    … …  
    448452        </xsd:element> 
    449453         
    450         <xsd:element name="MicrobeamManipulationRef"> 
     454        <xsd:element name="MicrobeamManipulationRef"> <!-- top level definition --> 
    451455                <xsd:complexType> 
    452456                        <xsd:complexContent> 
    … …  
    457461                </xsd:complexType> 
    458462        </xsd:element>   
    459         <xsd:element name="LogicalChannel"> 
     463        <xsd:element name="LogicalChannel"> <!-- top level definition --> 
    460464                <xsd:annotation> 
    461465                        <xsd:documentation> 
    … …  
    468472                                The SamplesPerPixel attribute is the number of channel components in the logical channel. 
    469473                                The IlluminationType attribute is a string enumeration which may be set to 'Transmitted', 'Epifluorescence', 'Oblique', or 'NonLinear'. 
    470                                 The optional PinholeAize attribute allows specifying adjustable pin hole diameters for confocal microscopes. 
     474                                The optional PinholeSize attribute allows specifying adjustable pin hole diameters for confocal microscopes. 
    471475                                The PhotometricInterpretation attribute is used to describe how to display a multi-component channel.  This attribute may be set to: 
    472476                                'monochrome', 'RGB', 'ARGB', 'CMYK', 'HSV'.  The default for single-component channels is 'monochrome'. 
    … …  
    485489                <xsd:complexType> 
    486490                        <xsd:sequence> 
    487                                 <xsd:element ref="LightSourceRef" minOccurs="0"/> 
    488                                 <xsd:element ref="OTFRef" minOccurs="0"/> 
    489                                 <xsd:element ref="DetectorRef" minOccurs="0"/> 
    490                                 <xsd:element ref="FilterSetRef" minOccurs="0"/> 
    491                                 <xsd:element ref="ChannelComponent" maxOccurs="unbounded"/> 
     491                                <xsd:element ref="LightSourceRef" minOccurs="0" maxOccurs="1"/> 
     492                                <xsd:element ref="OTFRef" minOccurs="0" maxOccurs="1"/> 
     493                                <xsd:element ref="DetectorRef" minOccurs="0" maxOccurs="1"/> 
     494                                <xsd:element ref="FilterSetRef" minOccurs="0" maxOccurs="1"/> 
     495                                <xsd:element ref="ChannelComponent" minOccurs="1" maxOccurs="unbounded"/> 
    492496                        </xsd:sequence> 
    493497                        <xsd:attribute name="ID" use="required" type="LogicalChannelID"/> 
    494                         <xsd:attribute name="Name" type="xsd:string"/> 
    495                         <xsd:attribute name="SamplesPerPixel" type="xsd:integer"/> 
    496                         <xsd:attribute name="SecondaryEmissionFilter" type="FilterID"/> 
    497                         <xsd:attribute name="SecondaryExcitationFilter" type="FilterID"/> 
    498                         <xsd:attribute name="IlluminationType"> 
     498                        <xsd:attribute name="Name" use="optional" type="xsd:string"/> 
     499                        <xsd:attribute name="SamplesPerPixel" use="optional" type="xsd:integer"/> 
     500                        <xsd:attribute name="SecondaryEmissionFilter" use="optional" type="FilterID"/> 
     501                        <xsd:attribute name="SecondaryExcitationFilter" use="optional" type="FilterID"/> 
     502                        <xsd:attribute name="IlluminationType" use="optional"> 
    499503                                <xsd:annotation><xsd:documentation> 
    500504                                        Attribute is called Illumination in EA diagram - ajp 
    … …  
    510514                                </xsd:simpleType> 
    511515                        </xsd:attribute> 
    512                         <xsd:attribute name="PinholeSize" type="xsd:positiveInteger"/> 
    513                         <xsd:attribute name="PhotometricInterpretation" default="Monochrome"> 
     516                        <xsd:attribute name="PinholeSize" use="optional" type="xsd:float"/> 
     517                        <xsd:attribute name="PhotometricInterpretation" default="Monochrome" use="optional"> 
    514518                                <xsd:annotation> 
    515519                                        <xsd:documentation> 
    … …  
    529533                                </xsd:simpleType> 
    530534                        </xsd:attribute> 
    531                         <xsd:attribute name="Mode"> 
     535                        <xsd:attribute name="Mode" use="optional"> 
    532536                                <xsd:simpleType> 
    533537                                        <xsd:restriction base="xsd:string"> 
    … …  
    550554                                </xsd:simpleType> 
    551555                        </xsd:attribute> 
    552                         <xsd:attribute name="ContrastMethod"> 
     556                        <xsd:attribute name="ContrastMethod" use="optional"> 
    553557                                <xsd:simpleType> 
    554558                                        <xsd:restriction base="xsd:string"> 
    … …  
    564568                                </xsd:simpleType> 
    565569                        </xsd:attribute> 
    566                         <xsd:attribute name="ExWave" type="xsd:positiveInteger"/> 
    567                         <xsd:attribute name="EmWave" type="xsd:positiveInteger"/> 
    568                         <xsd:attribute name="Fluor" type="xsd:string"/> 
    569                         <xsd:attribute name="NdFilter" type="xsd:float"/>        
    570                         <xsd:attribute name="PockelCellSetting"  type="xsd:integer"/> 
    571                 </xsd:complexType> 
    572         </xsd:element> 
    573         <xsd:element name="DisplayOptions"> 
    574                 <xsd:annotation> 
    575                         <xsd:documentation> 
    576                                 There is optionally one of these per Image. 
     570                        <xsd:attribute name="ExWave" use="optional" type="xsd:positiveInteger"/> 
     571                        <xsd:attribute name="EmWave" use="optional" type="xsd:positiveInteger"/> 
     572                        <xsd:attribute name="Fluor" use="optional" type="xsd:string"/> 
     573                        <xsd:attribute name="NdFilter" use="optional" type="xsd:float"/>         
     574                        <xsd:attribute name="PockelCellSetting" use="optional" type="xsd:integer"/> 
     575                </xsd:complexType> 
     576        </xsd:element> 
     577        <xsd:element name="LogicalChannelRef"> <!-- top level definition --> 
     578                <xsd:complexType> 
     579                        <xsd:complexContent> 
     580                                <xsd:extension base="Reference"> 
     581                                        <xsd:attribute name="ID" use="required" type="LogicalChannelID"/> 
     582                                </xsd:extension> 
     583                        </xsd:complexContent> 
     584                </xsd:complexType> 
     585        </xsd:element> 
     586        <xsd:element name="DisplayOptions"> <!-- top level definition --> 
     587                <xsd:annotation> 
     588                        <xsd:documentation> 
     589                                There is optionally one of these per Image. They provide support for the Origional OME Perl server. 
    577590                                This specifies mapping of image channel components to RGB or greyscale colorspace with one byte per pixel per RGB channel. 
    578591                                RedChannel, GreenChannel, BlueChannel, and GreyChannel specify the scaling of pixel values to 8-bit colorspace values. 
    … …  
    583596                                The range of timepoints to display is specified by the TStart and TStop attributes. 
    584597                                The MIME type of the desired video format is specified by Movie's MIMEtype attribute. 
    585                                 The ROI element describes a 3-D region of interest.  It is up to the viewer to either display the ROI only, 
    586                                 or to simply mark it somehow. 
     598                                The ROI element originally describes a 3-D region of interest. It now use the new ROI  
     599                                model. It is up to the loader to convert the new ROI structure to the old format if  
     600                                it is required.  It is up to the viewer to either display the ROI only, or to simply 
     601                                mark it somehow. 
    587602                        </xsd:documentation> 
    588603                </xsd:annotation> 
    589604                <xsd:complexType> 
    590605                        <xsd:sequence> 
    591                                 <xsd:element ref="RedChannel"/> 
    592                                 <xsd:element ref="GreenChannel"/> 
    593                                 <xsd:element ref="BlueChannel"/> 
    594                                 <xsd:element ref="GreyChannel"/> 
    595                                 <xsd:element ref="Projection" minOccurs="0"/> 
    596                                 <xsd:element ref="Time" minOccurs="0"/> 
     606                                <xsd:element ref="RedChannel" minOccurs="1" maxOccurs="1"/> 
     607                                <xsd:element ref="GreenChannel" minOccurs="1" maxOccurs="1"/> 
     608                                <xsd:element ref="BlueChannel" minOccurs="1" maxOccurs="1"/> 
     609                                <xsd:element ref="GreyChannel" minOccurs="1" maxOccurs="1"/> 
     610                                <xsd:element ref="Projection" minOccurs="0" maxOccurs="1"/> 
     611                                <xsd:element ref="Time" minOccurs="0" maxOccurs="1"/> 
    597612                                <xsd:element ref="ROI" minOccurs="0" maxOccurs="unbounded"/> 
    598613                        </xsd:sequence> 
    599                         <xsd:attribute name="Zoom" type="xsd:float"/> 
     614                        <xsd:attribute name="Zoom" use="optional" type="xsd:float"/> 
    600615                        <xsd:attribute name="ID" use="required" type="DisplayOptionsID"/> 
    601616                        <xsd:attribute name="Display" use="required"> 
    … …  
    612627                </xsd:complexType> 
    613628        </xsd:element> 
    614         <xsd:element name="RedChannel" type="ChannelSpecType"> 
     629        <xsd:element name="RedChannel" type="ChannelSpecType"> <!-- top level definition --> 
    615630                <xsd:annotation> 
    616631                        <xsd:documentation> 
    … …  
    621636                </xsd:annotation> 
    622637        </xsd:element> 
    623         <xsd:element name="GreenChannel" type="ChannelSpecType"> 
     638        <xsd:element name="GreenChannel" type="ChannelSpecType"> <!-- top level definition --> 
    624639                <xsd:annotation> 
    625640                        <xsd:documentation> 
    … …  
    630645                </xsd:annotation> 
    631646        </xsd:element> 
    632         <xsd:element name="BlueChannel" type="ChannelSpecType"> 
     647        <xsd:element name="BlueChannel" type="ChannelSpecType"> <!-- top level definition --> 
    633648                <xsd:annotation> 
    634649                        <xsd:documentation> 
    … …  
    639654                </xsd:annotation> 
    640655        </xsd:element> 
    641         <xsd:element name="GreyChannel"> 
     656        <xsd:element name="GreyChannel"> <!-- top level definition --> 
    642657                <xsd:annotation> 
    643658                        <xsd:documentation> 
    … …  
    651666                        <xsd:complexContent> 
    652667                                <xsd:extension base="ChannelSpecType"> 
    653                                         <xsd:attribute name="ColorMap" default="Greyscale"> 
     668                                        <xsd:attribute name="ColorMap" use="optional" default="Greyscale"> 
    654669                                                <xsd:simpleType> 
    655670                                                        <xsd:restriction base="xsd:string"> 
    … …  
    664679                </xsd:complexType> 
    665680        </xsd:element> 
    666         <xsd:element name="Projection"> 
     681        <xsd:element name="Projection"> <!-- top level definition --> 
    667682                <xsd:annotation> 
    668683                        <xsd:documentation> 
    … …  
    673688                </xsd:annotation> 
    674689                <xsd:complexType> 
    675                         <xsd:attribute name="ZStart" type="xsd:integer"/> 
    676                         <xsd:attribute name="ZStop" type="xsd:integer"/> 
    677                 </xsd:complexType> 
    678         </xsd:element> 
    679         <xsd:element name="Time"> 
     690                        <xsd:attribute name="ZStart" use="optional" type="xsd:integer"/> 
     691                        <xsd:attribute name="ZStop" use="optional" type="xsd:integer"/> 
     692                </xsd:complexType> 
     693        </xsd:element> 
     694        <xsd:element name="Time"> <!-- top level definition --> 
    680695                <xsd:annotation> 
    681696                        <xsd:documentation>