PEF Element: Angle

Description:

The PEF angle element is a choice of a parsed angle (using the subelement, dms) or a quantity (using the subelement, quantity).

Proposed Usage:

This datatype was developed to support the Epicentre angle data types. It is intended as a direct mapping from Epicentre to an XML file.

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="angle">
      <xsd:complexType>
        <xsd:choice>
          <xsd:element name="quantity" type="quantityType"/>
          <xsd:element name="dms" type="angleType"/>
        </xsd:choice>
      </xsd:complexType>
    </xsd:element>
    

    Sample Usage Schema:

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

    Sample XML:

    The example will show namespace of 'pef'

      <greenwich_longitude>
       <pef:angle>
        <pef:dms>
         <pef:degree direction="E">12</pef:degree>
         <pef:minute>26</pef:minute>
         <pef:second>9.7882</pef:second>
        </pef:dms>
       </pef:angle>
      </greenwich_longitude>
    

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