[eml-dev] [Bug 2128] New: - Request addition of optional "exampleEntry" element under <attribute>
bugzilla-daemon@ecoinformatics.org
bugzilla-daemon at ecoinformatics.org
Thu Jun 16 14:55:33 PDT 2005
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=2128
Summary: Request addition of optional "exampleEntry" element
under <attribute>
Product: EML
Version: 2.0.1
Platform: Other
OS/Version: other
Status: NEW
Severity: enhancement
Priority: P2
Component: eml - general bugs
AssignedTo: jones at nceas.ucsb.edu
ReportedBy: brooke at nceas.ucsb.edu
QAContact: eml-dev at ecoinformatics.org
This is a request for the addition of an "exampleValue" element (or other
appropriate name) under the <attribute> subtree.
The element would be optional, and unbounded (cardinality zero to infinity). Its
primary use would be for data-entry software to show the user an example of what
should be entered in a given field. The entry would contain an example of a
properly-formatted, valid entry for the attribute in question
Proposed location is:
...immediately *after* the existing entry:
/eml:eml/dataset/dataTable/attributeList/attribute/measurementScale
...and immediately *before* the existing entry:
/eml:eml/dataset/dataTable/attributeList/attribute/missingValueCode
the xpath would be:
/eml:eml/dataset/dataTable/attributeList/attribute/exampleValue
Here is a suggested addition to the eml-attribute.xsd schema:
==================================
<xs:element name="exampleValue" type="xs:string" minOccurs="0"
maxOccurs="unbounded">
<xs:annotation>
<xs:appinfo>
<doc:tooltip>Example Value</doc:tooltip>
<doc:summary>An example of a properly-formatted,
valid entry for this attribute</doc:summary>
<doc:description>An example of a properly-formatted,
valid entry for this attribute, which could be accessed and used by
data-entry software to show the user an example of what should be
entered in a given field.</doc:description>
<doc:example>depends on measurementScale for this attribute; e.g. for
a datetime format of hh:mm, the example value could be: 11:05</doc:example>
</xs:appinfo>
</xs:annotation>
</xs:element>
==================================
Here is a suggested EML snippet showing its usage (where "<...>" denotes that
non-relevant elements have been omitted for clarity):
<...>
<attribute>
<...>
<measurementScale>
<...datetime info here...>
</measurementScale>
<exampleValue>11:05</exampleValue>
<exampleValue>01:21</exampleValue>
<exampleValue>23:00</exampleValue>
<...>
</attribute>
<...>
More information about the Eml-dev
mailing list