HyTime clause 7: Measurement module

From ISO/IEC 10744:1992.

© International Organization for Standardization 1992. Permission to copy in any form is granted for use with conforming HyTime systems and applications as defined in ISO/IEC 10744, provided this notice is included in all copies.


7.1.2 Dimension specification

<!element dimspec O O (marklist, marklist?)>

<!attlist dimspec HyTime NAME dimspec
-- common attributes -->

#CONTENT
Constraint: Content must resolve to a pair of markers (unless marker1 omitted for implied dimref)

7.1.2.1 Overrun handling

<!attlist overrun overrun (error | wrap | trunc | ignore) error>

overrun
Handling of dimension that overruns range

7.1.2.2 Axis marker list

Element type forms allowed in axis marker lists

<!ENTITY % marker "marklist | dimref | markfun | mrkquery | calspec">

List of axis markers or their equivalents

<!element marklist O O (%marker; | #PCDATA)*>

<!attlist marklist HyTime NAME marklist
-- common attributes -->

#CONTENT
Constraint: nested marklists merge into single list
Constraint: calspec permitted only in calendars
lextype(snzi*)

7.1.2.3 Dimension specification list

<!element dimlist O O (dimlist | dimspec | %marker; | #PCDATA)*>

<!attlist dimlist HyTime NAME dimlist
-- common attributes -->

#CONTENT
Constraint: derives dimspecs from marker pairs. Nested marklist/dimlist merge into single list with effect of ((marker1, marker2) | dimspec)*
Constraint: calspec permitted only in calendars
lextype(snzi*)

7.2.2 Extent specification

<!attlist exspec exspec IDREFS #REQUIRED>

exspec
Constraint: multiple references concatenated
reftype(extlist)

7.2.3 Scheduled extent

<!element extent O O (dimlist+)>

<!attlist extent HyTime NAME extent
-- common attributes -->

#CONTENT
Constraint: multiple dimlists concatenated into one list, which must contain one dimspec per axis

7.2.4 Scheduled extent list

<!element extlist O O (extlist | extent | dimlist | dimspec | %marker; | #PCDATA)*>

<!attlist extlist
HyTime NAME extlist
-- common attributes -->

#CONTENT
Constraint: derives dimspecs from marker pairs and extents from dimspec sequences (one per axis) and interspersed syntactic extents
Constraint: nested marklist/dimlist/extlist merge into single list with effect of (((marker1, marker2) | dimspec)+ | extent)+
Constraint: calspec permitted only in calendars
lextype(snzi*)

7.3.1 Measurement domain definition

Measurement Domain Definition

<!element measure - O (granule)+>

<!attlist measure
HyTime NAME measure
smu NAME #REQUIRED
-- common attributes -->

#CONTENT
Measurement domain: convertible granules
Defines granules in terms of a reference granule and ultimately a standard measurement unit (SMU)
Multiple definitions with same SMU comprise one domain
smu
Standard measurement unit for domain
Constraint: notation name of an SMU. If virtual, it must have a formal public ID with a text identifier of "Virtual Measurement Unit"

Granule definition

<!element granule - O (%HyBrid;)*>

<!attlist granule
HyTime NAME granule
gn CDATA #REQUIRED
gd CDATA #REQUIRED
-- common attributes -->

gn
Granule name (case-sensitive)
Constraint: cannot be same as SMU name (with case ignored)
lextype(word)
gd
Granule definition expression
Constraint: ratio, and reference granule that ratio is multiplied that ratio is multiplied by (or the SMU, for which case is ignored)
lextype(frac, s+, word)

7.3.3 Schedule measurement

<!attlist schdmeas
basegran CDATA #FIXED ""
gran2hmu NUMBERS #FIXED "1 1">

basegran
Base granule for each axis
lextype(words)
Default: SMU for each
gran2hmu
Granule to HMU ratio for each axis
Constraint: 1 ratio per axis, or 1 for all
lextype(fracs)

7.4.1.2 Explicit dimension reference

<!element dimref - O (%HyBrid;)*>

<!attlist dimref
HyTime NAME dimref
elemref CDATA #REQUIRED
extref NUMBER 1
axisref NAME #IMPLIED
projectr IDREF #IMPLIED
selcomp (first | last | qcnt) qcnt
flip (flip | noflip) noflip
calevref (calevref | normal) normal
-- common attributes -->

elemref
Element referenced
Constraint: semantic constraints on references across axes (for example, a calspec is only permitted in a reference to a calendar event). #SCOPE permitted only in a scheduled extent in a projectr, meaning dimension of projectr scope, or a grpdex, meaning dimension of grpscope.
reftype(dimspec | axis | extent | evsched | wand | baton | evgrp | event | modscope | proscope)
lextype(IDREF | (RNI, "SCOPE"))
extref
Extent referenced
1=first or only extent
axisref
Axis referenced
Constraint: must be axis of referenced event
lextype(GI)
Default: dimspec or 1 axis
projectr
Event projector
For reference to projected dimension of an event or an evgrp, the projector that will create it
Constraint: in same pevsched as reference
reftype(projectr)
Default: not projected
selcomp
Selected component of dimension
flip
Last is normally counted from end of range (negative sign), and first from start of range (positive). Qcnt is also normally positive. Flip counts last from start of range (making it positive), and first from end of range (making it negative). Flip also makes qcnt negative.
calevref
Calendar event reference
For reference to calendar event from within a calendar event, returns dimension component in this schedule with same calspec as referenced element has in its schedule.

7.4.1.3 Marker function

Marker function

<!element markfun - O (%HyBrid;)*>

<!attlist markfun HyTime NAME markfun
-- function attributes --
-- common attributes -->

#CONTENT
Represents (i.e., function returns) an axis marker

function attributes

<!attlist function
fn NAME #IMPLIED
usefn NAME #CONREF
args CDATA #IMPLIED>

fn
Function name
Constraint: unique in element type
Default: none
usefn
Fn of another function to which to pass the args of this one
Default: none
args
Argument string passed to the function (if supported by function notation)
Default: none

7.4.2.3 Measurement Domain Unit (MDU) rule

<!attlist docmdu docmdu CDATA #FIXED "">

docmdu
SMU to MDU ratio that makes the MDU a common denominator of HMUs for all schedules in all FCS that are in a given measurement domain.
Constraint: SMU name and ratio for all of the measurement domains used in the document.
lextype((NAME, s+, frac), (s+, NAME, s+, frac)*)
Default: "1 1 for each SMU"

Best viewed with any browser.

Valid HTML
2.0! Last updated and validated 31 May 2001.