Is this a bug in EML schema or a bug in EML validator?
Zhiqiang Yang
Zhiqiang.Yang at orst.edu
Fri Aug 15 20:20:55 PDT 2003
Hi, EML Gurus,
I am trying to use eml validation tools for testing of eml document.
Suppose I have a eml document as the one attached at the end of this
email. The parse does not like the eml document, because in the config
file, it requires that to reuse attribute element, it has to be defined
in <attributeReference>, however, in eml schema, there is no such
element defined. All references in eml are defined using <references>
element. Does this means that <attributeReferene> will be added later?
Or the config.xml for eml validation should be changed? Similarly
situation occurs for <entityReference> etc.
Am I interpret the schema correctly or am I misunderstand something?
Thank you for your help.
yang
Attched Test EML Document
<?xml version="1.0"?>
<eml:eml
packageId="eml.1.1" system="knb"
xmlns:eml="eml://ecoinformatics.org/eml-2.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ds="eml://ecoinformatics.org/dataset-2.0.0"
xmlns:stmml="http://www.xml-cml.org/schema/stmml"
xsi:schemaLocation="eml://ecoinformatics.org/eml-2.0.0 eml.xsd">
<dataset>
<title>Data</title>
<creator id="c.le">
<individualName>
<salutation>Mr.</salutation>
<givenName>C</givenName>
<surName>Le</surName>
</individualName>
<address>
<deliveryPoint>Department</deliveryPoint>
<deliveryPoint>100 Bldg</deliveryPoint>
<deliveryPoint>1987 Circle</deliveryPoint>
<city>SP</city>
<administrativeArea>N</administrativeArea>
<postalCode>6097</postalCode>
<country>USA</country>
</address>
<phone>123-6731</phone>
<electronicMailAddress>le at edu</electronicMailAddress>
</creator>
<contact>
<references>c.le</references>
</contact>
<dataTable>
<entityName>txt</entityName>
<entityDescription>patterns</entityDescription>
<attributeList>
<attribute id="att.1">
<attributeName>fld</attributeName>
<attributeLabel>Field</attributeLabel>
<attributeDefinition>Field where the data was collected
</attributeDefinition>
<storageType>string</storageType>
<measurementScale>
<nominal>
<nonNumericDomain id="nd.1">
<textDomain>
<definition>Valid names of fields</definition>
</textDomain>
</nonNumericDomain>
</nominal>
</measurementScale>
</attribute>
</attributeList>
</dataTable>
<dataTable>
<entityName>CDR</entityName>
<entityDescription>patterns amoung communities at
CDR</entityDescription>
<attributeList>
<attribute id="att.2">
<attributeName>f</attributeName>
<attributeLabel>F</attributeLabel>
<attributeDefinition>F</attributeDefinition>
<storageType>string</storageType>
<measurementScale>
<nominal>
<nonNumericDomain id="nd.2">
<textDomain>
<definition>Valid names of fields</definition>
</textDomain>
</nonNumericDomain>
</nominal>
</measurementScale>
</attribute>
<attribute><references>att.1</references></attribute>
</attributeList>
</dataTable>
</dataset>
</eml:eml>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mercury.nceas.ucsb.edu/ecoinformatics/pipermail/eml-dev/attachments/20030815/b38c2a18/attachment.htm
More information about the Eml-dev
mailing list