This version is DEPRECATED, v2.03 is the latest version
This version is DEPRECATED, v2.03 is the latest version
The Standard Ruleset is a collection of rules that cover some of the basic requirements of the IATI Standard. It covers for example, the ordering of dates, and checks on the format of an iati-identifier.
The current Standard Ruleset is applicable to a single iati-activity
.
Each test, detailed below, can be repeated within an iati-activity
, depending upon the scope and scale of elements of the IATI Activity Standard used.
For example, an activity with a single transaction
would only be subject to two tests (detailed below). For each and every time a transaction
is repeated within an iati-activity
, these tests would be undertaken subsequently.
Hence, the minimum and maximum number of tests undertaken on an iati-activity
can fluctuate according to the content.
This could also be duplicated, if the tests are run on a single IATI activity file, which contains multiple iati-activity
instances.
The ruleset consists of two types of rules:
Starts with
- conditions around the formation of the iati-identifier
Date order
- logics around the ordering of various date elements.
These rules are applicable to various elements:
activity-date[@type='start-actual']/@iso-date
must be before or the same as activity-date[@type='end-actual']/@iso-date
activity-date[@type='start-planned']/@iso-date
must be before or the same as activity-date[@type='end-planned']/@iso-date
activity-date[@type='start-actual']/@iso-date
must not be in the future.
activity-date[@type='end-actual']/@iso-date
must not be in the future.
iati-identifier
should start with the value in reporting-org/@ref
transaction-date/@iso-date
must not be in the future.
value/@value-date
must not be in the future.
period-start/@iso-date
must be before or the same as period-end/@iso-date
period-start/@iso-date
must be before or the same as period-end/@iso-date