Skip to content

Instantly share code, notes, and snippets.

@Bjwebb
Created November 6, 2013 09:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bjwebb/7333024 to your computer and use it in GitHub Desktop.
Save Bjwebb/7333024 to your computer and use it in GitHub Desktop.

//recipient-country

There should be at least one of::

@code

There should be at least one of::

@percentage

//participating-org[@role='Funding']

There should be at least one of::

@ref

//iati-activity

The elements should start with the text of the start element:

start: reporting-org/@ref

iati-identifier

The text of all the listed elements should be unique:

title
description

The sum of the listed elements should be the given value:

recipient-country/@percentage

The sum of the listed elements should be the given value:

recipient-region/@percentage

The sum of the listed elements should be the given value:

sector/@percentage

There should be no more than one of any of::

reporting-org

There should be no more than one of any of::

iati-identifier

There should be at least one of::

reporting-org

There should be at least one of::

iati-identifier

There should be at least one of::

title

There should be at least one of::

description

There should be at least one of::

activity-status

There should be at least one of::

activity-date[@type='start-planned']
activity-date[@type='start-actual']

There should be at least one of::

activity-date[@type='end-planned']
activity-date[@type='end-actual']

There should be at least one of::

activity-date[@type='end-actual']

There should be at least one of::

participating-org

There should be at least one of::

recipient-country
recipient-region

There should be at least one of::

sector

There should be at least one of::

budget

There should be at least one of::

document-link

There should be at least one of::

contact-info

There should be at least one of::

contact-info/email

The iso-date attribute of the less element should be before that of the more element:

less: activity-date[@type='start-planned']
more: activity-date[@type='end-planned']

The iso-date attribute of the less element should be before that of the more element:

less: activity-date[@type='start-actual']
more: activity-date[@type='end-actual']

The iso-date attribute of the less element should be before that of the more element:

less: activity-date[@type='end-actual']
more: NOW

//iati-organisation

There should be at least one of::

reporting-org

There should be at least one of::

iati-identifier

There should be at least one of::

name

There should be at least one of::

total-budget

There should be at least one of::

document-link

The elements should start with the text of the start element:

start: reporting-org/@ref

iati-identifier

There should be no more than one of any of::

reporting-org

There should be no more than one of any of::

iati-identifier

//budget

There should be at least one of::

period-start

There should be at least one of::

period-end

There should be at least one of::

value

There should be at least one of::

value-date

The iso-date attribute of the less element should be before that of the more element:

less: period-start
more: period-end

//total-budget

There should be at least one of::

period-start

There should be at least one of::

period-end

There should be at least one of::

value

There should be at least one of::

value/@value-date

There should be at least one of::

value/@currency

//reporting-org

There should be at least one of::

@ref

There should be at least one of::

@type

//transaction/transaction-type/[@code='IF']

There should be at least one of::

@provider-org

There should be at least one of::

@provider-activity-identifier

//participating-org

There should be at least one of::

@role

There should be at least one of::

@type

//recipient-region

There should be at least one of::

@code

There should be at least one of::

@percentage

//sector

There should be at least one of::

@code

There should be at least one of::

@percentage

//transaction

There should be at least one of::

transaction-type/@code

There should be at least one of::

transaction-date

There should be at least one of::

value/@value-date

The iso-date attribute of the less element should be before that of the more element:

less: transaction-date
more: NOW

//activity-status

There should be at least one of::

@code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment