Changeset 2189 for TI01-discovery/trunk


Ignore:
Timestamp:
20/02/07 12:46:06 (13 years ago)
Author:
lawrence
Message:

Minor modifications to NumSim schema (now v8.001) to support linking
between codebase and experiments. Needs checking with real documents.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI01-discovery/trunk/schema/numsim/NumSim.xsd

    r912 r2189  
    22<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xlink="http://www.w3.org/1999/xlink" 
    33    xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:gmd="http://www.isotc211.org/2005/gmd" 
    4     version="00800"> 
     4    xmlns:moles="http://ndg.nerc.ac.uk/moles" version="00801"> 
    55    <xs:annotation> 
    6         <xs:documentation> Author: Bryan Lawrence Version date: May 10th, 2006 </xs:documentation> 
     6        <xs:documentation>Author: Bryan Lawrence; Version Date: Feb 20, 2007</xs:documentation> 
     7        <xs:documentation> Previous Version: Bryan Lawrence, May 10th, 2006 </xs:documentation> 
    78        <xs:documentation>The expectation is that this schema will be used initially by import into 
    89            discovery records (ideally ISO19115 based). While such discovery records already include 
     
    5051    <xs:import namespace="http://www.isotc211.org/2005/gmd" 
    5152        schemaLocation="../iso19139/gml3.1.1version/gmd/citation.xsd"/> 
    52     <xs:attributeGroup name="NS_link"> 
     53    <xs:import namespace="http://ndg.nerc.ac.uk/moles" 
     54        schemaLocation="http://ndg.nerc.ac.uk/schema/moles_1.2.5.xsd"/> 
     55    <xs:attributeGroup name="NS_xlink"> 
    5356        <xs:annotation> 
    5457            <xs:documentation> The attributes are those of a hyperlink, with the addition of a role 
     
    6063        <xs:attribute name="dateOfCitation" type="gco:Date_Type" use="optional"/> 
    6164    </xs:attributeGroup> 
     65    <xs:complexType name="NS_Link"> 
     66        <xs:all> 
     67            <xs:element name="NS_NumSimDoc" type="moles:dgMetadataIDType" minOccurs="0"/> 
     68        </xs:all> 
     69        <xs:attributeGroup ref="NS_xlink"/> 
     70    </xs:complexType> 
    6271    <xs:complexType name="NS_RelatedTo"> 
    6372        <xs:annotation> 
     
    6574        </xs:annotation> 
    6675        <xs:sequence> 
    67             <xs:element name="NS_Relationship" type="xs:string"/> 
    68         </xs:sequence> 
    69         <xs:attributeGroup ref="NS_link"/> 
     76            <xs:element name="NS_Relationship" minOccurs="1" maxOccurs="1" type="xs:string"/> 
     77            <xs:element name="NS_LinkTarget" type="NS_Link"/> 
     78        </xs:sequence> 
    7079    </xs:complexType> 
    7180    <xs:complexType name="NS_Description" mixed="true"> 
     
    273282    </xs:complexType> 
    274283    <xs:complexType name="NS_CodeBase"> 
    275         <xs:sequence> 
    276             <xs:element name="NS_Description" type="NS_Description"/> 
    277             <xs:element name="NS_Model" type="NS_Model" minOccurs="1" maxOccurs="unbounded"/> 
    278         </xs:sequence> 
     284        <xs:choice> 
     285            <xs:sequence> 
     286                <xs:element name="NS_ID" type="moles:dgMetadataIDType"/> 
     287                <xs:element name="NS_Description" type="NS_Description"/> 
     288                <xs:element name="NS_Model" type="NS_Model" minOccurs="1" maxOccurs="unbounded"/> 
     289            </xs:sequence> 
     290            <xs:element name="NS_ExternalCodeBase" type="NS_Link"> 
     291                <xs:annotation> 
     292                    <xs:documentation>It is assumed that the consumer of this document can parse 
     293                        this ID locate it, and populate the contents as appropriate. At some future 
     294                        version we might use an xlink here.</xs:documentation> 
     295                </xs:annotation> 
     296            </xs:element> 
     297        </xs:choice> 
    279298    </xs:complexType> 
    280299    <xs:complexType name="NS_Experiment"> 
     
    285304        </xs:annotation> 
    286305        <xs:sequence> 
     306            <xs:element name="NS_ID" type="moles:dgMetadataIDType"/> 
    287307            <xs:element name="NS_Description" type="NS_Description"/> 
    288308            <xs:element name="NS_BoundaryCondition" type="NS_BoundaryCondition" minOccurs="0" 
Note: See TracChangeset for help on using the changeset viewer.