complete GCE eml and custom units question more complete coding

Wade Sheldon sheldon at uga.edu
Tue Oct 28 08:27:57 PST 2003


David,

I don't think that's very workable, since the descriptions wouldn't be directly associated with their corresponding unit definitions when there were more than 1 (unless I repeated the stmml:unitList element blocks); however it doesn't really matter because I figured out how to get the docs to validate with the descriptions intact by associating both the units and description element names with the stmml namespace as below:

<additionalMetadata>
<stmml:unitList xmlns:stmml="http://www.xml-cml.org/schema/stmml" xsi:schemaLocation="http://www.xml-cml.org/schema/stmml http://gce-lter.marsci.uga.edu/lter/files/schemas/eml-200/stmml.xsd">
<!--note that the unitTypes here are taken from the eml-unitDictionary.xml-->
<stmml:unit id="decibar" name="decibar" unitType="pressure" abbreviation="dbar" multiplierToSI="0.1" parentSI="bar">
<stmml:description>decibar = 0.1 bar</stmml:description>
</stmml:unit>
<stmml:unit id="microEinsteinsPerSquareMeter" name="microEinsteinsPerSquareMeter" unitType="illuminance" abbreviation="µE/m^2">
<stmml:description>micro Einsteins (1E-06 moles of photons) per square meter (radiant flux)</stmml:description>
</stmml:unit>
<stmml:unit id="milliliterPerLiter" name="milliliterPerLiter" unitType="volumePerVolume" abbreviation="ml/L">
<stmml:description>milliters of solution per total volume</stmml:description>
</stmml:unit>
<stmml:unit id="percent" name="percent" unitType="dimensionless" abbreviation="%">
<stmml:description>ratio of two quantities as percent composition (1:100)</stmml:description>
</stmml:unit>
<stmml:unit id="siemensPerMeter" name="siemensPerMeter" unitType="conductance" abbreviation="S/m">
<stmml:description>siemens per meter (electrolytic conductivity of a solution)</stmml:description>
</stmml:unit>
</stmml:unitList>
</additionalMetadata>

I originally didn't use the namespace identifier and the schema validator hiccuped. Anyway, that's what I was shooting for and now it validates so I'm all set.

Thanks for the input.

--Wade

  ----- Original Message ----- 
  From: David Blankman 
  To: Wade Sheldon 
  Cc: eml-dev at ecoinformatics.org 
  Sent: Tuesday, October 28, 2003 10:50 AM
  Subject: Re: complete GCE eml and custom units question more complete coding


  <additionalMetadata>

      <stmml:unitList xsi:schemaLocation="http://www.xml-cml.org/schema/stmml http://gce-lter.marsci.uga.edu/lter/files/schemas/eml-200/stmml.xsd">

      <!--
  note that the unitTypes here are taken from the eml-unitDictionary.xml
  -->
      <stmml:unit id="siemensPerMeter" name="siemensPerMeter" unitType="conductance" abbreviation="S/m"/>
      </stmml:unitList>
            <customUnitDescription>Here is where the description text would go                     <customUnitDescription/>
  </additionalMetadata>

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


More information about the Eml-dev mailing list