Skip to content

Instantly share code, notes, and snippets.

@Bjwebb

Bjwebb/dfid.rst

Created Mar 21, 2014
Embed
What would you like to do?
Context Element/Attribute Requirement Tested if
//recipient-country @code Atleast one must be present  
//recipient-country @percentage Atleast one must be present count(../recipient-country)>1
//participating-org[@role='Funding'] @ref Atleast one must be present  
//iati-activity iati-identifier Must start with reporting-org/@ref  
//iati-activity title description Unique  
//iati-activity recipient-country/@percentage Must sum to 100  
//iati-activity recipient-region/@percentage Must sum to 100  
//iati-activity sector/@percentage Must sum to 100  
//iati-activity reporting-org No more than one  
//iati-activity iati-identifier No more than one  
//iati-activity reporting-org Atleast one must be present  
//iati-activity iati-identifier Atleast one must be present  
//iati-activity title Atleast one must be present  
//iati-activity description Atleast one must be present  
//iati-activity activity-status Atleast one must be present  
//iati-activity activity-date[@type='start-planned'] activity-date[@type='start-actual'] Atleast one must be present  
//iati-activity activity-date[@type='end-planned'] activity-date[@type='end-actual'] Atleast one must be present  
//iati-activity activity-date[@type='end-actual'] Atleast one must be present activity-status/@code = 3 or activity-status/@code = 4
//iati-activity participating-org Atleast one must be present  
//iati-activity recipient-country recipient-region Atleast one must be present  
//iati-activity sector Atleast one must be present  
//iati-activity budget Atleast one must be present activity-status/@code != 1
//iati-activity document-link Atleast one must be present activity-status/@code != 1
//iati-activity contact-info Atleast one must be present  
//iati-activity contact-info/email Atleast one must be present  
//iati-activity activity-date[@type='start-planned'] activity-date[@type='end-planned'] Dates must be in correct order  
//iati-activity activity-date[@type='start-actual'] activity-date[@type='end-actual'] Dates must be in correct order  
//iati-activity activity-date[@type='end-actual'] TODAY Dates must be in correct order  
//iati-organisation reporting-org Atleast one must be present  
//iati-organisation iati-identifier Atleast one must be present  
//iati-organisation name Atleast one must be present  
//iati-organisation total-budget Atleast one must be present  
//iati-organisation document-link Atleast one must be present  
//iati-organisation iati-identifier Must start with reporting-org/@ref  
//iati-organisation reporting-org No more than one  
//iati-organisation iati-identifier No more than one  
//transaction/transaction-type[@code='IF']/.. provider-org/@provider-activity-id Atleast one must be present  
//budget period-start Atleast one must be present  
//budget period-end Atleast one must be present  
//budget value Atleast one must be present  
//budget value/@value-date Atleast one must be present  
//budget period-start period-end Dates must be in correct order  
//total-budget period-start Atleast one must be present  
//total-budget period-end Atleast one must be present  
//total-budget value Atleast one must be present  
//total-budget value/@value-date Atleast one must be present  
//total-budget value/@currency Atleast one must be present  
//reporting-org @ref Atleast one must be present  
//reporting-org @type Atleast one must be present  
//participating-org @role Atleast one must be present  
//participating-org @type Atleast one must be present  
//recipient-region @code Atleast one must be present  
//recipient-region @percentage Atleast one must be present count(../recipient-region)>1
//sector @code Atleast one must be present  
//sector @percentage Atleast one must be present count(../sector)>1
//transaction transaction-type/@code Atleast one must be present  
//transaction transaction-date Atleast one must be present  
//transaction value/@value-date Atleast one must be present  
//transaction transaction-date TODAY Dates must be in correct order  
//activity-status @code Atleast one must be present  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment