[eml-dev] Issue on transforming from eml-2.0.1 to eml-2.1.0

Jing Tao tao at nceas.ucsb.edu
Fri Dec 12 21:26:20 PST 2008


Hi, Margaret:

I am writting a java program to transform eml201(eml200) documents to 
eml210 in a Metacat by the style sheet from eml module. It works now in my 
test server. But I found a issue here:

In some eml201 documents, some elements, e.g. objectName, have a 
space as text value. It is valid in eml201. After transforming to 
eml210 document, the space value will be kept there. However, current eml-210 
schema doesn't allow the value to be a space. This results that the 
generated eml210 document is invalid.

I guess there are maybe two possible solutions:

First, change the eml schema - back to string type rather than non-empty 
string type in those elements.

Second, in the eml201to210.xsl style sheet, if it finds the text value of 
a leaf node is a space, replace the space by some other text - such as 
"Unavailable".

Do you have any suggestion on this?

Thanks,

Jing

Jing Tao
National Center for Ecological
Analysis and Synthesis (NCEAS)
735 State St. Suite 204
Santa Barbara, CA 93101


More information about the Eml-dev mailing list