PEF Element: money

Description:

The PEF money element is a value, and an attribute indicating the currency. The currency attribute is restrict by an enumerated list, which is available for download.

Proposed Usage:

This datatype was developed to support the Epicentre money data types. It is intended as a mapping from Epicentre to an XML file, that varies slightly from the Epicentre money data type. The Epicentre money data type uses integer values of the currency, and subcurrencies, whereas the XML money data type uses a decimal value of the currency. For example, the Epicentre expression of $6.23 would be "6 USD" and "23 USDc", while the XML version would be "6.23 USD."

XML Schema:

  • The schema and examples do not explicitly show the lines that set the namespaces.
  • All schema examples will use xsd: as the namespace for the schema tags and datatypes, and null for all the locally generated namespaces.
  • The defining file, either peftypes_u.xsd or peftypes_q.xsd, must be imported into the document building the application schema.
  • It is recommended that these elements and their subelements have a namespace qualifier. The recommended qualifier is 'pef'.
  • <xsd:element name="money" type="money"/>
    

    Sample Usage Schema:

  • The element is globally defined. It is recommended that elementFormDefault be "qualified."
  •   <element name="cost">
       <complexType>
        <sequence>
         <element ref="pef:money"/>
        </sequence>
       </complexType>
      </element>
    

    Sample XML:

    The example will show namespace of 'pef'

      <cost>
        <pef:money currency="USD">3779.27</pef:money>
      </cost>
    

    Last Modified: March 21, 2001
    ©Copyright 2001 POSC. All rights reserved.