FW: Is this a bug in EML schema or a bug in EML validator?

Dan Higgins higgins at nceas.ucsb.edu
Mon Aug 18 08:33:05 PDT 2003


Hi Zhiqiang,

    It does look like there may be a bug in the validator. The fellow 
who wrote it is on vacation, but we will take a look at it and get back 
to you.

Dan Higgins
NCEAS Developer

---

Zhiqiang Yang wrote:

> Sorry if this is a duplicate. When I send my email last time, my email 
> program crashed.
>
>  
>
> 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>
>
>  
>


-- 
*******************************************************************
Dan Higgins                                  higgins at nceas.ucsb.edu
http://www.nceas.ucsb.edu/    Ph: 805-892-2531
National Center for Ecological Analysis and Synthesis (NCEAS) 
735 State Street - Room 205
Santa Barbara, CA 93195
*******************************************************************

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mercury.nceas.ucsb.edu/ecoinformatics/pipermail/eml-dev/attachments/20030818/a7ce90e6/attachment.htm


More information about the Eml-dev mailing list