[eml-dev] White sapce string at "para" element

Margaret O'Brien mob at icess.ucsb.edu
Mon Apr 20 10:08:21 PDT 2009


Hi Jing -
The para element is in the text.xsd, which is a small subset of the 
docBook DTD. DocBook allows empty para elements, and so empty <para> 
elements are allowed in EML, too.

Note: it was the EML elements with simple content that were retyped to 
non-empty strings (with a few exceptions).

Margaret



Jing Tao wrote:
> Hi, Margaret:
>
> Here is a very simple eml document created by morpho:
> <?xml version="1.0"?>
> <eml:eml packageId="tao.12767.1" system="knb" 
> xmlns:eml="eml://ecoinformatics.org/eml-2.1.0" 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
> xsi:schemaLocation="eml://ecoinformatics.org/eml-2.1.0 eml.xsd"> 
> <access authSystem="knb" order="denyFirst"> 
> <allow><principal>public</principal>
> <permission>read</permission>
> </allow>
> </access>
>  <dataset> <title>title</title>
>  <creator id="1240161910422"> <organizationName>UCSB</organizationName>
> </creator>
>  <abstract><para> </para>
> </abstract>
> <contact id="1240161923566"><individualName><surName>UCSB</surName>
> </individualName>
> </contact>
> </dataset>
>  </eml:eml>
>
> You may notice that there is white sapce value in abstract/para 
> element. This issue relates to the morpho bug 2223 - 
> http://bugzilla.ecoinformatics.org/show_bug.cgi?id=2223
>
> This bug was claimed to be fixed. But somehow it came back again and I 
> reopenned the bug.
>
> I thought Metacat would reject this document. However, metacat at dev 
> accepted it. I also tried the online emlparser at dev 
> http://dev.nceas.ucsb.edu/emlparser/, which cotains eml-2.1.0 release 
> code. The parser said the above document is a valid eml document.
>
> I am wondering why eml-2.1.0 schema allows a white space in para 
> element. Would you mind taking a look?
>
> Thanks,
>
> Jing
>
> Jing Tao
> National Center for Ecological
> Analysis and Synthesis (NCEAS)
> 735 State St. Suite 204
> Santa Barbara, CA 93101
> _______________________________________________
> Eml-dev mailing list
> Eml-dev at ecoinformatics.org
> http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/eml-dev

-- 
========================
Margaret O'Brien
Santa Barbara Coastal-LTER Data Management
Marine Science Institute
University of California
Santa Barbara, CA  93106-6150

805-893-2071
mob at icess.ucsb.edu
http://sbc.lternet.edu
======================== 



More information about the Eml-dev mailing list