<?xml version="1.0" encoding="UTF-8"?>
<!-- © TEI Consortium. Dual-licensed under CC-by and BSD2 licenses; see the file COPYING.txt for details. -->
<?xml-model href="https://jenkins.tei-c.org/job/TEIP5-dev/lastSuccessfulBuild/artifact/P5/release/xml/tei/odd/p5.nvdl" type="application/xml" schematypens="http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0"?>
<elementSpec xmlns="http://www.tei-c.org/ns/1.0" xmlns:sch="http://purl.oclc.org/dsdl/schematron" module="header" xml:id="gi-conversion" ident="conversion">
  <desc versionDate="2019-07-03" xml:lang="en">defines how to calculate one unit of measure in terms of another.</desc>
  <classes>
    <memberOf key="att.global"/>
    <memberOf key="att.datable"/>
    <memberOf key="att.formula"/>
    <memberOf key="att.locatable"/>
  </classes>
  <content><empty/></content>
  <attList>
      <attDef ident="fromUnit" usage="req">
      <desc versionDate="2019-06-26" xml:lang="en">indicates a source unit of measure that is to be converted into another unit indicated in <att>toUnit</att>.</desc>
      <datatype>
        <dataRef key="teidata.pointer"/>
      </datatype>
    </attDef>
    <attDef ident="toUnit" usage="req">
      <desc versionDate="2019-06-26" xml:lang="en">the target unit of measurement for a conversion from a source unit referenced in <att>fromUnit</att>.</desc>
      <datatype>
        <dataRef key="teidata.pointer"/>
      </datatype>
    </attDef>
  </attList>
  <exemplum xml:lang="en">
    <egXML xmlns="http://www.tei-c.org/ns/Examples" xml:id="gi-conversion-egXML-ud" source="#NONE">
      <conversion fromUnit="#shilling" toUnit="#pence" formula="$fromUnit * 12" from="1707" to="1971"/>
    </egXML>
  </exemplum>
  <exemplum xml:lang="en">
    <egXML xmlns="http://www.tei-c.org/ns/Examples" xml:id="gi-conversion-egXML-nt" source="#NONE">
      <conversion fromUnit="#pound" toUnit="#shilling" formula="$fromUnit * 20" from="1701" to="1971"/>
    </egXML>
  </exemplum>
  <remarks versionDate="2019-06-25" xml:lang="en">
    <p>The conversion element is designed to store information about converting from one unit of measurement to another. The <att>formula</att> attribute holds an XPath expression that indicates how the measurement system in <att>fromUnit</att> is converted to the system in <att>toUnit</att>. Do not confuse the usage of the dating attributes (<att>from</att> and <att>to</att>) in the examples with the attributes (<att>fromUnit</att> and <att>toUnit</att>) designed to reference units of measure.</p>
  </remarks>
  <listRef>
    <ptr target="#HDUDECL" type="div3"/>
  </listRef>
</elementSpec>
