validation of eml sample documents

Scott Chapal scott.chapal at jonesctr.org
Tue Aug 20 13:51:12 PDT 2002


Matt, Peter:

I was just finishing the identical excercise...with the same
conclusions, as this email came in.

> 1) Added an xmlns:eml namespace declaration and used it on the eml
> root element (and deleted several other xmlns that were not needed,
> but this was optional)
> 
> 2) it appears that all id's (id and packageId) must contain an
> alphabetic character because we have defined them as xs:ID.  We might
> want to consider redefining them as xs:string because of this
> limitation, and just rely on the key for uniqueness. Entered as Bug
> #563.
> 
> 3) renamed your "description" element to "entityDescription"
> 4) added the required "unit" element
> 5) moved the "physical" element to the proper location in the sequence
> (following constraint)
> 
> 6) added the required "measumentScale" element
> 7) added the required "attributeDomain" element

Here's my version w/ one table.

<?xml version="1.0" encoding="UTF-8"?>
<eml system="CES" packageId="sample.dataset.1"
      xmlns="eml:eml-2.0.0beta9"
      xmlns:ds="eml:dataset-2.0.0beta9"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="eml:eml-2.0.0beta9 eml.xsd"
      scope="system">
  <ds:dataset id="ds.1">
    <title xmlns="">Sample datset Description</title>
    <creator  id="creator.1" xmlns="">
      <individualName>
        <surName>Smith</surName>
      </individualName>
    </creator>
    <purpose xmlns="">
      <paragraph>Test Validation</paragraph>
    </purpose>
    <contact xmlns="">
      <references>creator.1</references>
    </contact>
    <dataTable id="archive_format"  xmlns="">
      <entityName>archive_format</entityName>
      <attributeList id="archive_format.attributeList">
        <attribute id="archive_format.archive_format">
          <attributeName>archive_format</attributeName>
          <attributeLabel/>
          <attributeDefinition/>
          <unit>
             <customUnit>Bogus Unit</customUnit>
         </unit>
          <storageType unitSystem="Microsoft SQL
		       Server">varchar</storageType>
          <measurementScale>nominal</measurementScale>
       <attributeDomain>
        <enumeratedDomain>
          <codeList>
            <code>MSQL</code>
            <definition>
             Microsoft SQL Server
            </definition>
           </codeList>
        </enumeratedDomain>
       </attributeDomain>
        </attribute>
        <attribute id="archive_format.archive_format_label">
          <attributeName>archive_format_label</attributeName>
          <attributeLabel/>
          <attributeDefinition/>
          <unit>
             <customUnit>M$ Unit</customUnit>
         </unit>
          <storageType unitSystem="Microsoft SQL
		       Server">varchar</storageType>
          <measurementScale>nominal</measurementScale>
       <attributeDomain>
        <enumeratedDomain>
          <codeList>
            <code>
             MSQL
            </code>
            <definition>
             Microsoft SQL Server
            </definition>
           </codeList>
        </enumeratedDomain>
       </attributeDomain>
        </attribute>
      </attributeList>
      <constraint id="pkarchive_format">
        <primaryKey>
          <constraintName>pkarchive_format</constraintName>
          <key>
            <attributeReference>archive_format.archive_format</attributeReference>
          </key>
        </primaryKey>
      </constraint>
      <constraint id="archive_format.archive_formatNotNull">
        <notNullConstraint>
          <constraintName>archive_format.archive_formatNotNull</constraintName>
          <key>
            <attributeReference>archive_format.archive_format</attributeReference>
          </key>
        </notNullConstraint>
      </constraint>
    </dataTable>
  </ds:dataset>
</eml>
--
Scott E. Chapal_________________________________________________
Database & Network Manager             scott.chapal at jonesctr.org
J.W. Jones Ecological Research Center          229.734.4706 x227
Rt. 2. Box. 2324. Newton, GA 31770-9651        229.734.6650 :FAX





More information about the Eml-dev mailing list