An element of type money will have a value and an attribute:
This datatype was developed to support the Epicentre money data type. Its intended usage is shown in the PEF money element document. It is anticipated that it will be useful primarily to support the PEF application. However, the restriction to the list of currencies as defined by ISO will make this datatype useful in itself.
<xsd:complexType name="money">
<xsd:simpleContent>
<xsd:extension base="xsd:decimal">
<xsd:attribute name="currency" type="currencies"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
The file defining this datatype "includes" the file, currency.xsd, which has 178 currency codes as defined by ISO.
<element name="cost" type="money"/>
<cost currency="USD">82000</cost>