Datatype: daytimeinterval

Description:

An element of type yearmonthinterval will have four subelements:

Proposed Usage:

This datatype was developed to support the Epicentre yearmonthinterval data type. Its intended usage is shown in the PEF daytimeinterval element document. It is not anticipated that it will be useful outside of the PEF application, since there is a W3C schema datatype for the same purpose.

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.
  • XML Examples will exclude namespace modifiers for clarity. Actual XML will probably need namespaces.
  • <xsd:complexType name="daytimeinterval">
        <xsd:sequence>
          <xsd:element name="dayInterval" type="xsd:positiveInteger" minOccurs="0"/>
          <xsd:element name="hourInterval" type="xsd:positiveInteger" minOccurs="0"/>
          <xsd:element name="minuteInterval" type="xsd:positiveInteger" minOccurs="0"/>
          <xsd:element name="secondInterval" type="xsd:decimal" minOccurs="0"/>
        </xsd:sequence>
    </xsd:complexType>
    

    Sample Usage Schema:

       <element name="outOfHoleTime" type="daytimeinterval"/>
    

    Sample XML:

       <outOfHoleTime>
        <hourInterval>2</hourInterval>
        <minuteInterval>42</minuteInterval>
       </outOfHoleTime>
    

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