PEF Element: daytimeinterval

Description:

The PEF daytimeinterval element has dayInterval, hourInterval, minuteInterval, and secondInterval subelements, all of which are optional.

Proposed Usage:

This datatype was developed to support the Epicentre daytimeinterval data type. It is intended as a direct mapping from Epicentre to an XML file. W3C Schema, using ISO 8601, defines specific data types for time durations, that should be used outside the Epicentre context.

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="daytimeinterval" type="daytimeinterval"/>
    

    Sample Usage Schema:

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

    Sample XML:

    The example will show namespace of 'pef'

      <activity_duration>
       <pef:daytimeinterval>
        <pef:dayInterval>7</pef:dayInterval>
       </pef:daytimeinterval>
      </activity_duration>
    

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