├── .github ├── dependabot.yml └── workflows │ └── main.yml ├── .gitignore ├── CHANGES.txt ├── CONTRIBUTING.rst ├── LICENSE ├── README.rst ├── iati-activities-schema.xsd ├── iati-common.xsd ├── iati-organisations-schema.xsd ├── iati-registry-record-schema.xsd ├── make-zip.sh ├── requirements-dev.txt ├── samples ├── IDML2.0.xsd ├── ocha-test-data.xml └── worked-example.xml ├── scripts └── iati2idml.xslt ├── test-data ├── IDML2.0.xsd ├── activities │ ├── IATI xml WB sample.xml │ ├── IATI xml dfid sample.xml │ ├── IATIfromGF.xml │ ├── dfid_out.xml │ ├── ocha-test-data.xml │ ├── undp_sample.xml │ ├── worked-example.xml │ └── worldbank.xml ├── run-activity-tests.sh ├── transform-to-idml.sh └── validate-iati-file.sh ├── tests ├── README-tests.txt ├── activity-tests │ ├── foo.sh │ ├── run-tests.sh │ ├── should-fail │ │ ├── 01-empty-activity.xml │ │ ├── 02-top-level-extensibility.xml │ │ ├── 03-mixed-content-extensibility.xml │ │ ├── 04-attribute-extensibility.xml │ │ ├── 05-code-attribute.xml │ │ ├── 15-generated-datetime.xml │ │ ├── 16-last-updated-datetime.xml │ │ ├── 17-bad-hierarchy.xml │ │ ├── 18-missing-iati-activities-version.xml │ │ ├── 19-has-iati-activity-version.xml │ │ ├── 20-two-reporting-orgs.xml │ │ ├── 22-missing-title-narrative.xml │ │ ├── 23-missing-description-narrative.xml │ │ ├── 24-two-titles.xml │ │ ├── 26-two-activity-status.xml │ │ ├── activity-scope │ │ │ └── 01-two-activity-scope.xml │ │ ├── budget │ │ │ ├── 01-missing-period-end.xml │ │ │ ├── 02-missing-period-start.xml │ │ │ ├── 03-missing-value.xml │ │ │ ├── 04-missing-attribute-period-start-iso-date.xml │ │ │ ├── 05-missing-attribute-period-end-iso-date.xml │ │ │ ├── 06-missing-attribute-value-date.xml │ │ │ ├── 07-contains-text-period-start.xml │ │ │ ├── 08-contains-text-period-end.xml │ │ │ ├── 09-two-period-end.xml │ │ │ ├── 10-two-period-start.xml │ │ │ ├── 11-two-value.xml │ │ │ ├── 12-non-decimal-value.xml │ │ │ └── 13-empty-decimal-value.xml │ │ ├── capital-spend │ │ │ ├── 01-two-capital-spend.xml │ │ │ ├── 02-missing-attribute-percentage.xml │ │ │ └── 03-contains-text.xml │ │ ├── collaboration-type │ │ │ ├── 01-two-collaboration-type.xml │ │ │ ├── 02-missing-attribute-code.xml │ │ │ └── 03-contains-text.xml │ │ ├── conditions │ │ │ ├── 01-missing-attribute-attached.xml │ │ │ ├── 02-missing-attribute-type.xml │ │ │ ├── 03-missing-narrative.xml │ │ │ ├── 04-two-conditions.xml │ │ │ └── 05-non-boolen-attribute-attached.xml │ │ ├── contact-info │ │ │ ├── 01-missing-organisation-narrative.xml │ │ │ ├── 02-missing-department-narrative.xml │ │ │ ├── 03-missing-job-title-narrative.xml │ │ │ ├── 04-missing-person-name-narrative.xml │ │ │ ├── 05-missing-mailing-address-narrative.xml │ │ │ ├── 07-two-organisations.xml │ │ │ ├── 08-two-departments.xml │ │ │ ├── 09-two-person-names.xml │ │ │ └── 10-two-job-titles.xml │ │ ├── country-budget-items │ │ │ ├── 01-two-descriptions.xml │ │ │ ├── 02-two-country-budget-items.xml │ │ │ ├── 03-missing-budget-item.xml │ │ │ ├── 04-missing-description-narrative.xml │ │ │ ├── 05-missing-attribute-country-budget-items-vocabulary.xml │ │ │ └── 06-missing-attribute-budget-item-code.xml │ │ ├── crs-add │ │ │ ├── 01-non-decimal-interest-received.xml │ │ │ ├── 02-non-decimal-principal-outstanding.xml │ │ │ ├── 03-non-decimal-interest-arrears.xml │ │ │ ├── 04-non-decimal-prinicipal-arrears.xml │ │ │ ├── 05-two-crs-add.xml │ │ │ ├── 06-non-iso-date-commitment-date.xml │ │ │ ├── 07-non-iso-date-repayment-first-date.xml │ │ │ ├── 08-non-iso-date-value-date.xml │ │ │ ├── 09-non-iso-date-repayment-final-date.xml │ │ │ ├── 10-non-decimal-year.xml │ │ │ ├── 11-two-loan-terms.xml │ │ │ ├── 12-two-loan-status.xml │ │ │ ├── 13-two-interest-received.xml │ │ │ ├── 14-two-principal-arrears.xml │ │ │ ├── 15-two-interest-arrears.xml │ │ │ ├── 16-two-principal-outstanding.xml │ │ │ ├── 16-two-repayment-type.xml │ │ │ ├── 17-two-commitment-date.xml │ │ │ ├── 18-two-repayment-final-date.xml │ │ │ ├── 19-two-repayment-plan.xml │ │ │ ├── 20-two-repayment-first-date.xml │ │ │ ├── 21-non-decimal-rate-1.xml │ │ │ ├── 22-non-decimal-rate-2.xml │ │ │ └── 23-two-channel-code.xml │ │ ├── default-aid-type │ │ │ ├── 02-missing-attribute-code.xml │ │ │ └── 03-contains-text.xml │ │ ├── default-finance-type │ │ │ ├── 01-two-default-finance-type.xml │ │ │ ├── 02-missing-attribute-code.xml │ │ │ └── 03-contains-text.xml │ │ ├── default-flow-type │ │ │ ├── 01-two-default-flow-type.xml │ │ │ ├── 02-missing-attribute-code.xml │ │ │ └── 03-contains-text.xml │ │ ├── default-tied-status │ │ │ ├── 01-two-default-tied-status.xml │ │ │ ├── 02-missing-attribute-code.xml │ │ │ └── 03-contains-text.xml │ │ ├── document-link │ │ │ ├── 01-missing-category.xml │ │ │ ├── 02-missing-title.xml │ │ │ ├── 03-missing-title-narrative.xml │ │ │ ├── 04-two-title.xml │ │ │ ├── 05-contains-text-category.xml │ │ │ └── 06-contains-text-language.xml │ │ ├── fss │ │ │ ├── 01-two-fss.xml │ │ │ ├── 02-missing-attribute-extraction-date.xml │ │ │ ├── 03-missing-attribute-forecast-year.xml │ │ │ └── 04-missing-forecast-data.xml │ │ ├── humanitarian │ │ │ ├── 01-humanitarian-activity-flag-empty.xml │ │ │ ├── 01-humanitarian-activity-flag-non-numerical.xml │ │ │ ├── 02-humanitarian-transaction-validation-empty.xml │ │ │ ├── 02-humanitarian-transaction-validation-non-numerical.xml │ │ │ ├── 03-humanitarian-scope-no-code.xml │ │ │ ├── 04-humanitarian-scope-no-type.xml │ │ │ └── 06-humanitarian-scope-no-vocab.xml │ │ ├── legacy-data │ │ │ ├── 01-missing-attribute-value.xml │ │ │ ├── 02-missing-attribute-name.xml │ │ │ └── 03-contains-text.xml │ │ ├── location │ │ │ ├── 01-location-name-without-narrative.xml │ │ │ ├── 02-location-description-without-narrative.xml │ │ │ ├── 03-location-activity-description-without-narrative.xml │ │ │ ├── 04-location-point-without-pos.xml │ │ │ ├── 05-two-location-reach.xml │ │ │ ├── 06-two-descriptions.xml │ │ │ ├── 07-two-activity-descriptions.xml │ │ │ ├── 08-two-names.xml │ │ │ ├── 09-two-pos.xml │ │ │ ├── 10-two-points.xml │ │ │ ├── 11-two-exactness.xml │ │ │ ├── 12-two-location-class.xml │ │ │ └── 13-two-feature-designation.xml │ │ ├── other-identifier │ │ │ ├── 01-missing-attribute-type.xml │ │ │ ├── 02-missing-attribute-ref.xml │ │ │ └── 04-contains-text.xml │ │ ├── participating-org │ │ │ ├── 01-activity-id-cardinality │ │ │ └── 01-activity-id-empty.xml │ │ ├── planned-disbursement │ │ │ ├── 02-missing-period-start.xml │ │ │ ├── 03-missing-value.xml │ │ │ ├── 04-missing-attribute-period-start-iso-date.xml │ │ │ ├── 05-missing-attribute-period-end-iso-date.xml │ │ │ ├── 06-missing-attribute-value-date.xml │ │ │ ├── 07-contains-text-period-start.xml │ │ │ ├── 08-contains-text-period-end.xml │ │ │ ├── 09-two-period-end.xml │ │ │ ├── 10-two-period-start.xml │ │ │ ├── 11-two-value.xml │ │ │ ├── 12-non-decimal-value.xml │ │ │ ├── 13-empty-decimal-value.xml │ │ │ ├── 14-multiple-provider-orgs.xml │ │ │ └── 15-multiple-receiver-orgs.xml │ │ ├── policy-marker │ │ │ └── 01-missing-code.xml │ │ ├── related-activity │ │ │ ├── 01-missing-attribute-ref.xml │ │ │ ├── 02-missing-attribute-type.xml │ │ │ └── 03-contains-text.xml │ │ ├── result │ │ │ ├── 01-missing-title.xml │ │ │ ├── 02-missing-title-narrative.xml │ │ │ ├── 03-missing-indicator-title.xml │ │ │ ├── 04-missing-indicator-title-narrative.xml │ │ │ ├── 05-missing-attribute-indicator-measure.xml │ │ │ ├── 06-missing-indicator.xml │ │ │ ├── 07-missing-attribute-result-type.xml │ │ │ ├── 08-non-boolean-attribute-aggregation-status.xml │ │ │ ├── 09-non-boolean-attribute-ascending.xml │ │ │ ├── 10-two-title.xml │ │ │ ├── 11-two-indicator-title.xml │ │ │ ├── 12-two-description.xml │ │ │ ├── 13-missing-indicator-description-narrative.xml │ │ │ ├── 14-missing-description-narrative.xml │ │ │ ├── 15-missing-indicator-baseline-comment-narrative.xml │ │ │ ├── 16-missing-indicator-period-period-start.xml │ │ │ ├── 17-missing-indicator-period-period-end.xml │ │ │ ├── 18-non-iso-date-period-period-start.xml │ │ │ ├── 19-non-iso-date-period-period-end.xml │ │ │ ├── 20-missing-indicator-period-target-comment-narrative.xml │ │ │ ├── 21-missing-indicator-period-actual-comment-narrative.xml │ │ │ ├── 22-two-indicator-description.xml │ │ │ ├── 24-two-indicator-baseline-comment.xml │ │ │ ├── 25-two-indicator-period-period-end.xml │ │ │ ├── 25-two-indicator-period-period-start.xml │ │ │ ├── 28-two-indicator-period-target-comment.xml │ │ │ ├── 30-two-indicator-period-actual-comment.xml │ │ │ ├── 33-missing-attribute-period-start-iso-date.xml │ │ │ ├── 34-missing-attribute-period-end-iso-date.xml │ │ │ ├── 36-missing-attribute-baseline-year.xml │ │ │ ├── 37-non-positiveInteger-baseline-year.xml │ │ │ ├── 38-non-positiveInteger-baseline-year.xml │ │ │ ├── 39-indicator-reference-vocabulary-missing.xml │ │ │ ├── 41-indicator-reference-code-missing.xml │ │ │ ├── 47-two-indicator-period-target-comment.xml │ │ │ ├── 48-two-indicator-period-actual-comment.xml │ │ │ ├── 49-no-narrative-indicator-period-target-comment.xml │ │ │ └── 50-no-narrative-indicator-period-actual-comment.xml │ │ ├── sector │ │ │ └── 21-sector-missing-code.xml │ │ └── transaction │ │ │ ├── 01-missing-transaction-type.xml │ │ │ ├── 02-missing-transaction-date.xml │ │ │ ├── 03-missing-value.xml │ │ │ ├── 04-missing-description-narrative.xml │ │ │ ├── 05-two-transaction-date.xml │ │ │ ├── 05-two-transaction-type.xml │ │ │ ├── 06-two-transaction-date.xml │ │ │ ├── 07-two-values.xml │ │ │ ├── 08-two-descriptions.xml │ │ │ ├── 09-two-provider-org.xml │ │ │ ├── 10-two-receiver-org.xml │ │ │ ├── 12-two-recipient-country.xml │ │ │ ├── 13-two-recipient-region.xml │ │ │ ├── 14-two-flow-type.xml │ │ │ ├── 15-two-finance-type.xml │ │ │ ├── 17-two-tied-status.xml │ │ │ ├── 18-two-disbursement-channel.xml │ │ │ ├── 19-missing-attribute-transaction-type-code.xml │ │ │ ├── 20-missing-attribute-transaction-date-iso-code.xml │ │ │ ├── 21-missing-attribute-value-date.xml │ │ │ ├── 22-incorrect-date-value-date.xml │ │ │ ├── 23-incorrect-date-transaction-date.xml │ │ │ ├── 24-missing-attribute-disbursement-channel-code.xml │ │ │ ├── 25-missing-attribute-tied-status-code.xml │ │ │ ├── 26-missing-attribute-aid-type-code.xml │ │ │ ├── 27-missing-attribute-finance-type-code.xml │ │ │ ├── 28-missing-attribute-flow-type-code.xml │ │ │ ├── 29-missing-attribute-recipient-region-code.xml │ │ │ ├── 30-misssing-attribute-recipient-country-code.xml │ │ │ ├── 31-missing-attribute-sector-code.xml │ │ │ ├── 32-recipient-region-percentage.xml │ │ │ ├── 33-recipient-country-percentage.xml │ │ │ ├── 34-contains-text-flow-type.xml │ │ │ ├── 35-contains-text-finance-type.xml │ │ │ ├── 36-contains-text-aid-type.xml │ │ │ ├── 37-contains-text-tied-status.xml │ │ │ ├── 38-contains-text-disbursement-channel.xml │ │ │ ├── 39-contains-text-transaction-type.xml │ │ │ ├── 40-non-decimal-value.xml │ │ │ ├── 41-empty-decimal-value.xml │ │ │ └── 42-contains-text-transaction-date.xml │ └── should-pass │ │ ├── 02-minimal-doc-with-repeated-options.xml │ │ ├── 02-minimal-doc.xml │ │ ├── 03-top-level-extensibility.xml │ │ ├── 04-mixed-content-extensibility.xml │ │ ├── 05-other-identifier.xml │ │ ├── 09-legacy-data.xml │ │ ├── 11-hierarchy.xml │ │ ├── 12-version.xml │ │ ├── 13-document-link.xml │ │ ├── 16-types.xml │ │ ├── 18-conditions.xml │ │ ├── 19-budget.xml │ │ ├── 20-planned-disbursement.xml │ │ ├── 21-transaction.xml │ │ ├── 22-participating-org.xml │ │ ├── 23-activity-status.xml │ │ ├── 24-results.xml │ │ ├── 25-linked-data.xml │ │ ├── 26-decimal-percentage.xml │ │ ├── 27-decimal-currency.xml │ │ ├── 30-capital-spend.xml │ │ ├── 32-activity-scope.xml │ │ ├── 33-conditions.xml │ │ ├── 34-sector.xml │ │ ├── 35-policy-marker.xml │ │ ├── 36-collaboration-type.xml │ │ ├── 37-default-flow-type.xml │ │ ├── 38-default-finance-type.xml │ │ ├── 39-default-aid-type.xml │ │ ├── 40-default-tied-status.xml │ │ ├── 41-related-activity.xml │ │ ├── 42-legacy-data.xml │ │ ├── 43-conditions-no-conditions.xml │ │ ├── 44-fss.xml │ │ ├── 45-fss-no-children.xml │ │ ├── 46-fss-minimal-attributes.xml │ │ ├── 47-two-descriptions.xml │ │ ├── contact-info │ │ ├── 01-contact-info-example.xml │ │ └── 02-two-mailing-addresses.xml │ │ ├── country-budget-items │ │ ├── 01-country-budget-items.xml │ │ └── 02-budget-item-without-description.xml │ │ ├── crs-add │ │ ├── 01-crs-add-minimum.xml │ │ ├── 02-crs-add-minimum-attributes.xml │ │ ├── 03-crs-add-full.xml │ │ ├── 03-crs-add-just-other-flags.xml │ │ ├── 05-crs-add-just-loan-status.xml │ │ └── 06-crs-add-just-loan-terms.xml │ │ ├── humanitarian │ │ ├── 01-humanitarian-activity-flag.xml │ │ ├── 02-humanitarian-transaction-flag.xml │ │ └── 03-humanitarian-scope.xml │ │ ├── location │ │ ├── 01-generic-location.xml │ │ ├── 02-two-location-id.xml │ │ └── 03-two-administrative.xml │ │ └── vocabulary-uri │ │ ├── 01-activity-recipient-region.xml │ │ ├── 02-transaction-recipient-region.xml │ │ ├── 03-sector.xml │ │ ├── 04-transaction-sector.xml │ │ └── 05-policy-marker.xml ├── organisation-tests │ ├── run-tests.sh │ ├── should-fail │ │ ├── 01-empty-organization.xml │ │ ├── 02-top-level-extensibility.xml │ │ ├── 03-attribute-extensibility.xml │ │ ├── 04-currencyType.xml │ │ ├── 05-value-date.xml │ │ ├── 06-value-date.xml │ │ ├── 08-value-type.xml │ │ ├── 10-recipient-country-ref.xml │ │ ├── 11-generated-datetime.xml │ │ ├── 12-last-updated-datetime.xml │ │ ├── 13-missing-name.xml │ │ ├── 14-missing-name-narrative.xml │ │ ├── 15-missing-organisation-identifier.xml │ │ ├── 16-missing-version.xml │ │ ├── 17-version-on-iati-organisation.xml │ │ ├── 18-missing-reporting-org-narrative.xml │ │ ├── document-link │ │ │ ├── 01-missing-title-narrative.xml │ │ │ ├── 02-missing-category.xml │ │ │ ├── 03-missing-title.xml │ │ │ ├── 04-missing-attribute-url.xml │ │ │ ├── 05-missing-attribute-format.xml │ │ │ ├── 07-two-titles.xml │ │ │ ├── 08-missing-attribute-category-code.xml │ │ │ ├── 10-missing-attribute-language-code.xml │ │ │ ├── 11-missing-attribute-recipient-country-code.xml │ │ │ ├── 12-contains-text-category.xml │ │ │ ├── 13-contains-text-language.xml │ │ │ ├── 14-contains-text-recipient-country.xml │ │ │ └── 15-non-iso-date.xml │ │ ├── recipient-country-budget │ │ │ ├── 01-missing-period-start.xml │ │ │ ├── 02-missing-period-end.xml │ │ │ ├── 03-missing-value.xml │ │ │ ├── 04-missing-attribute-period-start-iso-date.xml │ │ │ ├── 05-missing-attribute-period-end-iso-date.xml │ │ │ ├── 06-missing-attribute-value-date.xml │ │ │ ├── 07-non-decimal-value.xml │ │ │ ├── 08-non-iso-date-period-start.xml │ │ │ ├── 09-non-iso-date-period-end.xml │ │ │ ├── 10-non-iso-date-value-date.xml │ │ │ ├── 11-contains-text-period-start.xml │ │ │ ├── 12-contains-text-period-end.xml │ │ │ ├── 13-two-period-start.xml │ │ │ ├── 14-two-period-end.xml │ │ │ ├── 15-two-value.xml │ │ │ ├── 16-missing-budget-line-value.xml │ │ │ ├── 17-missing-budget-line-narrative.xml │ │ │ ├── 18-non-iso-date-budget-line-value.xml │ │ │ ├── 19-missing-recipient-country.xml │ │ │ ├── 20-missing-attribute-recipient-country-code.xml │ │ │ ├── 21-contains-text-recipient-country.xml │ │ │ └── replace.sh │ │ ├── recipient-org-budget │ │ │ ├── 01-missing-period-start.xml │ │ │ ├── 02-missing-period-end.xml │ │ │ ├── 03-missing-value.xml │ │ │ ├── 04-missing-attribute-period-start-iso-date.xml │ │ │ ├── 05-missing-attribute-period-end-iso-date.xml │ │ │ ├── 06-missing-attribute-value-date.xml │ │ │ ├── 07-non-decimal-value.xml │ │ │ ├── 08-non-iso-date-period-start.xml │ │ │ ├── 09-non-iso-date-period-end.xml │ │ │ ├── 10-non-iso-date-value-date.xml │ │ │ ├── 11-contains-text-period-start.xml │ │ │ ├── 12-contains-text-period-end.xml │ │ │ ├── 13-two-period-start.xml │ │ │ ├── 14-two-period-end.xml │ │ │ ├── 15-two-value.xml │ │ │ ├── 16-missing-budget-line-value.xml │ │ │ ├── 17-missing-budget-line-narrative.xml │ │ │ ├── 18-non-iso-date-budget-line-value.xml │ │ │ ├── 19-recipient-org.xml │ │ │ ├── 20-recipient-org-narrative.xml │ │ │ └── 21-two-recipient-org.xml │ │ ├── recipient-region-budget │ │ │ ├── 04-non-decimal-value.xml │ │ │ ├── 05-non-iso-date-period-start.xml │ │ │ ├── 06-non-iso-date-period-end.xml │ │ │ ├── 07-non-iso-date-value-date.xml │ │ │ ├── 08-contains-text-period-start.xml │ │ │ ├── 09-contains-text-period-end.xml │ │ │ ├── 10-two-period-start.xml │ │ │ ├── 11-two-period-end.xml │ │ │ ├── 12-two-value.xml │ │ │ ├── 13-non-iso-date-budget-line-value.xml │ │ │ ├── 14-two-recipient-region.xml │ │ │ ├── 15-budget-line-missing-narrative.xml │ │ │ ├── 16-missing-period-start.xml │ │ │ ├── 17-missing-period-end.xml │ │ │ ├── 18-missing-value.xml │ │ │ └── 19-missing-value-date.xml │ │ ├── reporting-org │ │ │ ├── 01-missing-reporting-org.xml │ │ │ ├── 02-missing-attribute-ref.xml │ │ │ ├── 03-missing-attribute-type.xml │ │ │ └── 04-non-boolean-secondary-reporter.xml │ │ ├── total-budget │ │ │ ├── 01-missing-period-start.xml │ │ │ ├── 02-missing-period-end.xml │ │ │ ├── 03-missing-value.xml │ │ │ ├── 04-missing-attribute-period-start-iso-date.xml │ │ │ ├── 05-missing-attribute-period-end-iso-date.xml │ │ │ ├── 06-missing-attribute-value-date.xml │ │ │ ├── 07-non-decimal-value.xml │ │ │ ├── 08-non-iso-date-period-start.xml │ │ │ ├── 09-non-iso-date-period-end.xml │ │ │ ├── 10-non-iso-date-value-date.xml │ │ │ ├── 11-contains-text-period-start.xml │ │ │ ├── 12-contains-text-period-end.xml │ │ │ ├── 13-two-period-start.xml │ │ │ ├── 14-two-period-end.xml │ │ │ ├── 15-two-value.xml │ │ │ ├── 16-missing-budget-line-value.xml │ │ │ ├── 17-missing-budget-line-narrative.xml │ │ │ └── 18-non-iso-date-budget-line-value.xml │ │ └── total-expenditure │ │ │ ├── 01-missing-period-start.xml │ │ │ ├── 02-missing-period-end.xml │ │ │ ├── 03-missing-value.xml │ │ │ ├── 04-missing-attribute-period-start-iso-date.xml │ │ │ ├── 05-missing-attribute-period-end-iso-date.xml │ │ │ ├── 06-missing-attribute-value-date.xml │ │ │ ├── 07-non-decimal-value.xml │ │ │ ├── 08-non-iso-date-period-start.xml │ │ │ ├── 09-non-iso-date-period-end.xml │ │ │ ├── 10-non-iso-date-value-date.xml │ │ │ ├── 11-contains-text-period-start.xml │ │ │ ├── 12-contains-text-period-end.xml │ │ │ ├── 13-two-period-start.xml │ │ │ ├── 14-two-period-end.xml │ │ │ ├── 15-two-value.xml │ │ │ ├── 16-missing-expense-line-value.xml │ │ │ ├── 17-missing-expense-line-narrative.xml │ │ │ └── 18-non-iso-date-expense-line-value.xml │ └── should-pass │ │ ├── 00-container.xml │ │ ├── 01-minimal-organization.xml │ │ ├── 02-top-level-extensibility.xml │ │ ├── 03-attribute-extensibility.xml │ │ ├── 04-recipient-country-budget.xml │ │ ├── 05-version.xml │ │ ├── 06-document-link.xml │ │ ├── 07-recipient-org-budget.xml │ │ ├── 08-reporting-org.xml │ │ ├── 09-total-budget.xml │ │ ├── 10-recipient-region-budget.xml │ │ └── 11-total-expenditure.xml ├── registry-tests │ ├── run-tests.sh │ ├── should-fail │ │ ├── 01-missing-file-id.xml │ │ └── 02-bad-extension.xml │ └── should-pass │ │ ├── 01-minimum.xml │ │ ├── 02-email.xml │ │ ├── 03-extension.xml │ │ ├── 04-donor-country.xml │ │ ├── 05-xml-lang.xml │ │ └── 06-activity-period.xml ├── run-tests.sh ├── should-fail │ ├── iati-activities │ │ └── iati-activity │ │ │ ├── document-link │ │ │ └── description │ │ │ │ ├── err-not-iati-xml-missing-required-element_document-link-with-multiple-description-elements.xml │ │ │ │ └── err-not-iati-xml-missing-required-element_document-link-with-optional-description-element-no-narrative.xml │ │ │ ├── result │ │ │ ├── document-link │ │ │ │ ├── _format │ │ │ │ │ └── err-not-iati-xml-missing-attribute_required-attribute-not-present.xml │ │ │ │ ├── _url │ │ │ │ │ └── err-not-iati-xml-missing-attribute_required-attribute-not-present.xml │ │ │ │ ├── category │ │ │ │ │ ├── _code │ │ │ │ │ │ └── err-not-iati-xml-missing-attribute_required-attribute-not-present.xml │ │ │ │ │ ├── err-not-iati-xml-forbidden-attribute_non-permitted-attribute-present.xml │ │ │ │ │ └── err-not-iati-xml-missing-required-element_no-category-element.xml │ │ │ │ ├── description │ │ │ │ │ ├── err-not-iati-xml-forbidden-attribute_non-permitted-attribute-present.xml │ │ │ │ │ ├── err-not-iati-xml-missing-required-element_document-link-with-multiple-description-elements.xml │ │ │ │ │ └── narrative │ │ │ │ │ │ └── err-not-iati-xml-missing-required-element_no-narrative-element.xml │ │ │ │ ├── document-date │ │ │ │ │ ├── _iso-date │ │ │ │ │ │ └── err-not-iati-xml-missing-attribute_required-attribute-not-present.xml │ │ │ │ │ ├── err-not-iati-xml-forbidden-attribute_non-permitted-attribute-present.xml │ │ │ │ │ ├── err-not-iati-xml-incorrect-datatype.xml │ │ │ │ │ └── err-not-iati-xml-missing-required-element_multiple-elements-present.xml │ │ │ │ ├── err-not-iati-xml-forbidden-attribute_non-permitted-attribute-present.xml │ │ │ │ ├── language │ │ │ │ │ ├── _code │ │ │ │ │ │ └── err-not-iati-xml-missing-attribute_required-attribute-not-present.xml │ │ │ │ │ └── err-not-iati-xml-forbidden-attribute_non-permitted-attribute-present.xml │ │ │ │ └── title │ │ │ │ │ ├── err-not-iati-xml-forbidden-attribute_non-permitted-attribute-present.xml │ │ │ │ │ ├── err-not-iati-xml-missing-required-element_no-title-element.xml │ │ │ │ │ └── narrative │ │ │ │ │ └── err-not-iati-xml-missing-required-element_no-narrative-element.xml │ │ │ ├── indicator │ │ │ │ ├── _aggregation-status │ │ │ │ │ └── err-not-iati-xml-incorrect-datatype.xml │ │ │ │ ├── baseline │ │ │ │ │ ├── dimension │ │ │ │ │ │ └── err-not-iati-xml-incorrect-datatype.xml │ │ │ │ │ └── document-link │ │ │ │ │ │ ├── _format │ │ │ │ │ │ └── err-not-iati-xml-missing-attribute_required-attribute-not-present.xml │ │ │ │ │ │ ├── _url │ │ │ │ │ │ └── err-not-iati-xml-missing-attribute_required-attribute-not-present.xml │ │ │ │ │ │ ├── category │ │ │ │ │ │ ├── _code │ │ │ │ │ │ │ └── err-not-iati-xml-missing-attribute_required-attribute-not-present.xml │ │ │ │ │ │ ├── err-not-iati-xml-forbidden-attribute_non-permitted-attribute-present.xml │ │ │ │ │ │ └── err-not-iati-xml-missing-required-element_no-category-element.xml │ │ │ │ │ │ ├── description │ │ │ │ │ │ ├── err-not-iati-xml-forbidden-attribute_non-permitted-attribute-present.xml │ │ │ │ │ │ ├── err-not-iati-xml-missing-required-element_document-link-with-multiple-description-elements.xml │ │ │ │ │ │ └── narrative │ │ │ │ │ │ │ └── err-not-iati-xml-missing-required-element_no-narrative-element.xml │ │ │ │ │ │ ├── document-date │ │ │ │ │ │ ├── _iso-date │ │ │ │ │ │ │ └── err-not-iati-xml-missing-attribute_required-attribute-not-present.xml │ │ │ │ │ │ ├── err-not-iati-xml-forbidden-attribute_non-permitted-attribute-present.xml │ │ │ │ │ │ ├── err-not-iati-xml-incorrect-datatype.xml │ │ │ │ │ │ └── err-not-iati-xml-missing-required-element_multiple-elements-present.xml │ │ │ │ │ │ ├── err-not-iati-xml-forbidden-attribute_non-permitted-attribute-present.xml │ │ │ │ │ │ ├── language │ │ │ │ │ │ ├── _code │ │ │ │ │ │ │ └── err-not-iati-xml-missing-attribute_required-attribute-not-present.xml │ │ │ │ │ │ └── err-not-iati-xml-forbidden-attribute_non-permitted-attribute-present.xml │ │ │ │ │ │ └── title │ │ │ │ │ │ ├── err-not-iati-xml-forbidden-attribute_non-permitted-attribute-present.xml │ │ │ │ │ │ ├── err-not-iati-xml-missing-required-element_no-title-element.xml │ │ │ │ │ │ └── narrative │ │ │ │ │ │ └── err-not-iati-xml-missing-required-element_no-narrative-element.xml │ │ │ │ ├── document-link │ │ │ │ │ ├── _format │ │ │ │ │ │ └── err-not-iati-xml-missing-attribute_required-attribute-not-present.xml │ │ │ │ │ ├── _url │ │ │ │ │ │ └── err-not-iati-xml-missing-attribute_required-attribute-not-present.xml │ │ │ │ │ ├── category │ │ │ │ │ │ ├── _code │ │ │ │ │ │ │ └── err-not-iati-xml-missing-attribute_required-attribute-not-present.xml │ │ │ │ │ │ ├── err-not-iati-xml-forbidden-attribute_non-permitted-attribute-present.xml │ │ │ │ │ │ └── err-not-iati-xml-missing-required-element_no-category-element.xml │ │ │ │ │ ├── description │ │ │ │ │ │ ├── err-not-iati-xml-forbidden-attribute_non-permitted-attribute-present.xml │ │ │ │ │ │ ├── err-not-iati-xml-missing-required-element_document-link-with-multiple-description-elements.xml │ │ │ │ │ │ └── narrative │ │ │ │ │ │ │ └── err-not-iati-xml-missing-required-element_no-narrative-element.xml │ │ │ │ │ ├── document-date │ │ │ │ │ │ ├── _iso-date │ │ │ │ │ │ │ └── err-not-iati-xml-missing-attribute_required-attribute-not-present.xml │ │ │ │ │ │ ├── err-not-iati-xml-forbidden-attribute_non-permitted-attribute-present.xml │ │ │ │ │ │ ├── err-not-iati-xml-incorrect-datatype.xml │ │ │ │ │ │ └── err-not-iati-xml-missing-required-element_multiple-elements-present.xml │ │ │ │ │ ├── err-not-iati-xml-forbidden-attribute_non-permitted-attribute-present.xml │ │ │ │ │ ├── language │ │ │ │ │ │ ├── _code │ │ │ │ │ │ │ └── err-not-iati-xml-missing-attribute_required-attribute-not-present.xml │ │ │ │ │ │ └── err-not-iati-xml-forbidden-attribute_non-permitted-attribute-present.xml │ │ │ │ │ └── title │ │ │ │ │ │ ├── err-not-iati-xml-forbidden-attribute_non-permitted-attribute-present.xml │ │ │ │ │ │ ├── err-not-iati-xml-missing-required-element_no-title-element.xml │ │ │ │ │ │ └── narrative │ │ │ │ │ │ └── err-not-iati-xml-missing-required-element_no-narrative-element.xml │ │ │ │ └── period │ │ │ │ │ ├── actual │ │ │ │ │ └── document-link │ │ │ │ │ │ ├── _format │ │ │ │ │ │ └── err-not-iati-xml-missing-attribute_required-attribute-not-present.xml │ │ │ │ │ │ ├── _url │ │ │ │ │ │ └── err-not-iati-xml-missing-attribute_required-attribute-not-present.xml │ │ │ │ │ │ ├── category │ │ │ │ │ │ ├── _code │ │ │ │ │ │ │ └── err-not-iati-xml-missing-attribute_required-attribute-not-present.xml │ │ │ │ │ │ ├── err-not-iati-xml-forbidden-attribute_non-permitted-attribute-present.xml │ │ │ │ │ │ └── err-not-iati-xml-missing-required-element_no-category-element.xml │ │ │ │ │ │ ├── description │ │ │ │ │ │ ├── err-not-iati-xml-forbidden-attribute_non-permitted-attribute-present.xml │ │ │ │ │ │ ├── err-not-iati-xml-missing-required-element_document-link-with-multiple-description-elements.xml │ │ │ │ │ │ └── narrative │ │ │ │ │ │ │ └── err-not-iati-xml-missing-required-element_no-narrative-element.xml │ │ │ │ │ │ ├── document-date │ │ │ │ │ │ ├── _iso-date │ │ │ │ │ │ │ └── err-not-iati-xml-missing-attribute_required-attribute-not-present.xml │ │ │ │ │ │ ├── err-not-iati-xml-forbidden-attribute_non-permitted-attribute-present.xml │ │ │ │ │ │ ├── err-not-iati-xml-incorrect-datatype.xml │ │ │ │ │ │ └── err-not-iati-xml-missing-required-element_multiple-elements-present.xml │ │ │ │ │ │ ├── err-not-iati-xml-forbidden-attribute_non-permitted-attribute-present.xml │ │ │ │ │ │ ├── language │ │ │ │ │ │ ├── _code │ │ │ │ │ │ │ └── err-not-iati-xml-missing-attribute_required-attribute-not-present.xml │ │ │ │ │ │ └── err-not-iati-xml-forbidden-attribute_non-permitted-attribute-present.xml │ │ │ │ │ │ └── title │ │ │ │ │ │ ├── err-not-iati-xml-forbidden-attribute_non-permitted-attribute-present.xml │ │ │ │ │ │ ├── err-not-iati-xml-missing-required-element_no-title-element.xml │ │ │ │ │ │ └── narrative │ │ │ │ │ │ └── err-not-iati-xml-missing-required-element_no-narrative-element.xml │ │ │ │ │ └── target │ │ │ │ │ └── document-link │ │ │ │ │ ├── _format │ │ │ │ │ └── err-not-iati-xml-missing-attribute_required-attribute-not-present.xml │ │ │ │ │ ├── _url │ │ │ │ │ └── err-not-iati-xml-missing-attribute_required-attribute-not-present.xml │ │ │ │ │ ├── category │ │ │ │ │ ├── _code │ │ │ │ │ │ └── err-not-iati-xml-missing-attribute_required-attribute-not-present.xml │ │ │ │ │ ├── err-not-iati-xml-forbidden-attribute_non-permitted-attribute-present.xml │ │ │ │ │ └── err-not-iati-xml-missing-required-element_no-category-element.xml │ │ │ │ │ ├── description │ │ │ │ │ ├── err-not-iati-xml-forbidden-attribute_non-permitted-attribute-present.xml │ │ │ │ │ ├── err-not-iati-xml-missing-required-element_document-link-with-multiple-description-elements.xml │ │ │ │ │ └── narrative │ │ │ │ │ │ └── err-not-iati-xml-missing-required-element_no-narrative-element.xml │ │ │ │ │ ├── document-date │ │ │ │ │ ├── _iso-date │ │ │ │ │ │ └── err-not-iati-xml-missing-attribute_required-attribute-not-present.xml │ │ │ │ │ ├── err-not-iati-xml-forbidden-attribute_non-permitted-attribute-present.xml │ │ │ │ │ ├── err-not-iati-xml-incorrect-datatype.xml │ │ │ │ │ └── err-not-iati-xml-missing-required-element_multiple-elements-present.xml │ │ │ │ │ ├── err-not-iati-xml-forbidden-attribute_non-permitted-attribute-present.xml │ │ │ │ │ ├── language │ │ │ │ │ ├── _code │ │ │ │ │ │ └── err-not-iati-xml-missing-attribute_required-attribute-not-present.xml │ │ │ │ │ └── err-not-iati-xml-forbidden-attribute_non-permitted-attribute-present.xml │ │ │ │ │ └── title │ │ │ │ │ ├── err-not-iati-xml-forbidden-attribute_non-permitted-attribute-present.xml │ │ │ │ │ ├── err-not-iati-xml-missing-required-element_no-title-element.xml │ │ │ │ │ └── narrative │ │ │ │ │ └── err-not-iati-xml-missing-required-element_no-narrative-element.xml │ │ │ └── reference │ │ │ │ ├── _code │ │ │ │ └── err-not-iati-xml-missing-attribute_missing-required-code-attribute.xml │ │ │ │ ├── _vocabulary │ │ │ │ └── err-not-iati-xml-missing-attribute_missing-required-vocabulary-attribute.xml │ │ │ │ └── err-not-iati-xml-missing-required-element_reference-element-present-with-non-allowed-child-element.xml │ │ │ └── tag │ │ │ └── err-not-iati-xml-missing-attribute.xml │ └── iati-organisations │ │ └── iati-organisation │ │ ├── document-link │ │ └── description │ │ │ ├── err-not-iati-xml-missing-required-element_document-link-with-multiple-description-elements.xml │ │ │ └── err-not-iati-xml-missing-required-element_document-link-with-optional-description-element-no-narrative.xml │ │ └── err-not-iati-xml-missing-required-element_no-required-elements-exist.xml ├── should-pass │ ├── iati-activities │ │ └── iati-activity │ │ │ ├── _budget-not-provided │ │ │ └── attribute-exists-correct-format.xml │ │ │ ├── default-aid-type │ │ │ ├── _vocabulary │ │ │ │ └── attribute-exists.xml │ │ │ ├── element-exists-multiple-times.xml │ │ │ ├── element-exists-with-required-subelements-only.xml │ │ │ └── element-exists.xml │ │ │ ├── document-link │ │ │ ├── description │ │ │ │ ├── document-link-with-optional-description-element-and-namespace-attributes.xml │ │ │ │ ├── document-link-with-optional-description-element-and-namespace-subelement.xml │ │ │ │ ├── document-link-with-optional-description-element.xml │ │ │ │ └── narrative │ │ │ │ │ └── narrative-with-namespace-attribute.xml │ │ │ └── document-link-with-required-child-elements.xml │ │ │ ├── only-required-elements-exist.xml │ │ │ ├── participation-org │ │ │ └── _crs-channel-code │ │ │ │ └── attribute-exists.xml │ │ │ ├── result │ │ │ ├── document-link │ │ │ │ ├── category │ │ │ │ │ ├── element-present-with-namespace-attribute.xml │ │ │ │ │ └── element-present-with-namespace-subelement.xml │ │ │ │ ├── description │ │ │ │ │ ├── element-present-with-namespace-attribute.xml │ │ │ │ │ ├── element-present-with-namespace-subelement.xml │ │ │ │ │ ├── element-present-with-required-children.xml │ │ │ │ │ └── narrative │ │ │ │ │ │ ├── element-present-with-namespace-attribute.xml │ │ │ │ │ │ └── multiple-elements-present.xml │ │ │ │ ├── document-date │ │ │ │ │ ├── element-present-with-namespace-attribute.xml │ │ │ │ │ ├── element-present-with-namespace-subelement.xml │ │ │ │ │ └── element-present.xml │ │ │ │ ├── element-present-with-namespace-attribute.xml │ │ │ │ ├── element-present-with-namespace-subelement.xml │ │ │ │ ├── element-present-with-required-children.xml │ │ │ │ ├── language │ │ │ │ │ ├── element-present-with-namespace-attribute.xml │ │ │ │ │ ├── element-present-with-namespace-subelement.xml │ │ │ │ │ └── element-present.xml │ │ │ │ ├── multiple-elements-present-with-required-children.xml │ │ │ │ └── title │ │ │ │ │ ├── element-present-with-namespace-attribute.xml │ │ │ │ │ ├── element-present-with-namespace-subelement.xml │ │ │ │ │ └── narrative │ │ │ │ │ ├── element-present-with-namespace-attribute.xml │ │ │ │ │ └── multiple-elements-present.xml │ │ │ ├── indicator │ │ │ │ ├── _aggregation-status │ │ │ │ │ ├── attribute-exists-integer-boolean.xml │ │ │ │ │ └── attribute-exists-string-boolean.xml │ │ │ │ ├── baseline │ │ │ │ │ ├── _iso-date │ │ │ │ │ │ ├── attribute-does-not-exist.xml │ │ │ │ │ │ └── attribute-exists-for-element-correct-date-format.xml │ │ │ │ │ ├── _value │ │ │ │ │ │ ├── attribute-does-not-exist.xml │ │ │ │ │ │ └── attribute-exists.xml │ │ │ │ │ ├── dimension │ │ │ │ │ │ ├── _name │ │ │ │ │ │ │ └── element-exists-with-name-attribute.xml │ │ │ │ │ │ ├── _value │ │ │ │ │ │ │ └── element-exists-with-value-attribute.xml │ │ │ │ │ │ ├── element-exists-with-all-attributes.xml │ │ │ │ │ │ ├── element-exists.xml │ │ │ │ │ │ ├── element-present-with-namespace-attribute.xml │ │ │ │ │ │ └── element-present-with-namespace-subelement.xml │ │ │ │ │ ├── document-link │ │ │ │ │ │ ├── category │ │ │ │ │ │ │ ├── element-present-with-namespace-attribute.xml │ │ │ │ │ │ │ └── element-present-with-namespace-subelement.xml │ │ │ │ │ │ ├── description │ │ │ │ │ │ │ ├── element-present-with-namespace-attribute.xml │ │ │ │ │ │ │ ├── element-present-with-namespace-subelement.xml │ │ │ │ │ │ │ ├── element-present-with-required-children.xml │ │ │ │ │ │ │ └── narrative │ │ │ │ │ │ │ │ ├── element-present-with-namespace-attribute.xml │ │ │ │ │ │ │ │ └── multiple-elements-present.xml │ │ │ │ │ │ ├── document-date │ │ │ │ │ │ │ ├── element-present-with-namespace-attribute.xml │ │ │ │ │ │ │ ├── element-present-with-namespace-subelement.xml │ │ │ │ │ │ │ └── element-present.xml │ │ │ │ │ │ ├── element-present-with-namespace-attribute.xml │ │ │ │ │ │ ├── element-present-with-namespace-subelement.xml │ │ │ │ │ │ ├── element-present-with-required-children.xml │ │ │ │ │ │ ├── language │ │ │ │ │ │ │ ├── element-present-with-namespace-attribute.xml │ │ │ │ │ │ │ ├── element-present-with-namespace-subelement.xml │ │ │ │ │ │ │ └── element-present.xml │ │ │ │ │ │ ├── multiple-elements-present-with-required-children.xml │ │ │ │ │ │ └── title │ │ │ │ │ │ │ ├── element-present-with-namespace-attribute.xml │ │ │ │ │ │ │ ├── element-present-with-namespace-subelement.xml │ │ │ │ │ │ │ └── narrative │ │ │ │ │ │ │ ├── element-present-with-namespace-attribute.xml │ │ │ │ │ │ │ └── multiple-elements-present.xml │ │ │ │ │ ├── location │ │ │ │ │ │ ├── element-exists-with-attribute.xml │ │ │ │ │ │ └── element-exists.xml │ │ │ │ │ └── multiple-occurance-of-element-in-context.xml │ │ │ │ ├── document-link │ │ │ │ │ ├── category │ │ │ │ │ │ ├── element-present-with-namespace-attribute.xml │ │ │ │ │ │ └── element-present-with-namespace-subelement.xml │ │ │ │ │ ├── description │ │ │ │ │ │ ├── element-present-with-namespace-attribute.xml │ │ │ │ │ │ ├── element-present-with-namespace-subelement.xml │ │ │ │ │ │ ├── element-present-with-required-children.xml │ │ │ │ │ │ └── narrative │ │ │ │ │ │ │ ├── element-present-with-namespace-attribute.xml │ │ │ │ │ │ │ └── multiple-elements-present.xml │ │ │ │ │ ├── document-date │ │ │ │ │ │ ├── element-present-with-namespace-attribute.xml │ │ │ │ │ │ ├── element-present-with-namespace-subelement.xml │ │ │ │ │ │ └── element-present.xml │ │ │ │ │ ├── element-present-with-namespace-attribute.xml │ │ │ │ │ ├── element-present-with-namespace-subelement.xml │ │ │ │ │ ├── element-present-with-required-children.xml │ │ │ │ │ ├── language │ │ │ │ │ │ ├── element-present-with-namespace-attribute.xml │ │ │ │ │ │ ├── element-present-with-namespace-subelement.xml │ │ │ │ │ │ └── element-present.xml │ │ │ │ │ ├── multiple-elements-present-with-required-children.xml │ │ │ │ │ └── title │ │ │ │ │ │ ├── element-present-with-namespace-attribute.xml │ │ │ │ │ │ ├── element-present-with-namespace-subelement.xml │ │ │ │ │ │ └── narrative │ │ │ │ │ │ ├── element-present-with-namespace-attribute.xml │ │ │ │ │ │ └── multiple-elements-present.xml │ │ │ │ └── period │ │ │ │ │ ├── actual │ │ │ │ │ ├── _value │ │ │ │ │ │ ├── attribute-does-not-exist.xml │ │ │ │ │ │ └── attribute-exists.xml │ │ │ │ │ ├── document-link │ │ │ │ │ │ ├── category │ │ │ │ │ │ │ ├── element-present-with-namespace-attribute.xml │ │ │ │ │ │ │ └── element-present-with-namespace-subelement.xml │ │ │ │ │ │ ├── description │ │ │ │ │ │ │ ├── element-present-with-namespace-attribute.xml │ │ │ │ │ │ │ ├── element-present-with-namespace-subelement.xml │ │ │ │ │ │ │ ├── element-present-with-required-children.xml │ │ │ │ │ │ │ └── narrative │ │ │ │ │ │ │ │ ├── element-present-with-namespace-attribute.xml │ │ │ │ │ │ │ │ └── multiple-elements-present.xml │ │ │ │ │ │ ├── document-date │ │ │ │ │ │ │ ├── element-present-with-namespace-attribute.xml │ │ │ │ │ │ │ ├── element-present-with-namespace-subelement.xml │ │ │ │ │ │ │ └── element-present.xml │ │ │ │ │ │ ├── element-present-with-namespace-attribute.xml │ │ │ │ │ │ ├── element-present-with-namespace-subelement.xml │ │ │ │ │ │ ├── element-present-with-required-children.xml │ │ │ │ │ │ ├── language │ │ │ │ │ │ │ ├── element-present-with-namespace-attribute.xml │ │ │ │ │ │ │ ├── element-present-with-namespace-subelement.xml │ │ │ │ │ │ │ └── element-present.xml │ │ │ │ │ │ ├── multiple-elements-present-with-required-children.xml │ │ │ │ │ │ └── title │ │ │ │ │ │ │ ├── element-present-with-namespace-attribute.xml │ │ │ │ │ │ │ ├── element-present-with-namespace-subelement.xml │ │ │ │ │ │ │ └── narrative │ │ │ │ │ │ │ ├── element-present-with-namespace-attribute.xml │ │ │ │ │ │ │ └── multiple-elements-present.xml │ │ │ │ │ ├── element-present-once.xml │ │ │ │ │ └── multiple-occurences-of-element.xml │ │ │ │ │ └── target │ │ │ │ │ ├── _value │ │ │ │ │ ├── attribute-does-not-exist.xml │ │ │ │ │ └── attribute-exists.xml │ │ │ │ │ ├── document-link │ │ │ │ │ ├── category │ │ │ │ │ │ ├── element-present-with-namespace-attribute.xml │ │ │ │ │ │ └── element-present-with-namespace-subelement.xml │ │ │ │ │ ├── description │ │ │ │ │ │ ├── element-present-with-namespace-attribute.xml │ │ │ │ │ │ ├── element-present-with-namespace-subelement.xml │ │ │ │ │ │ ├── element-present-with-required-children.xml │ │ │ │ │ │ └── narrative │ │ │ │ │ │ │ ├── element-present-with-namespace-attribute.xml │ │ │ │ │ │ │ └── multiple-elements-present.xml │ │ │ │ │ ├── document-date │ │ │ │ │ │ ├── element-present-with-namespace-attribute.xml │ │ │ │ │ │ ├── element-present-with-namespace-subelement.xml │ │ │ │ │ │ └── element-present.xml │ │ │ │ │ ├── element-present-with-namespace-attribute.xml │ │ │ │ │ ├── element-present-with-namespace-subelement.xml │ │ │ │ │ ├── element-present-with-required-children.xml │ │ │ │ │ ├── language │ │ │ │ │ │ ├── element-present-with-namespace-attribute.xml │ │ │ │ │ │ ├── element-present-with-namespace-subelement.xml │ │ │ │ │ │ └── element-present.xml │ │ │ │ │ ├── multiple-elements-present-with-required-children.xml │ │ │ │ │ └── title │ │ │ │ │ │ ├── element-present-with-namespace-attribute.xml │ │ │ │ │ │ ├── element-present-with-namespace-subelement.xml │ │ │ │ │ │ └── narrative │ │ │ │ │ │ ├── element-present-with-namespace-attribute.xml │ │ │ │ │ │ └── multiple-elements-present.xml │ │ │ │ │ ├── element-occurs-multiple-times-in-context.xml │ │ │ │ │ └── element-present-once.xml │ │ │ ├── reference │ │ │ │ ├── _vocabulary-uri │ │ │ │ │ └── reference-element-optional-vocabulary-uri-present.xml │ │ │ │ ├── multiple-reference-elements-present-with-required-attributes.xml │ │ │ │ ├── reference-element-present-with-namespace-attribute.xml │ │ │ │ ├── reference-element-present-with-namespace-element.xml │ │ │ │ └── reference-element-present-with-required-attributes.xml │ │ │ └── result-element-present.xml │ │ │ ├── tag │ │ │ ├── element-exists-with-required-and-optional-attributes.xml │ │ │ ├── element-exists-with-required-attributes-and-namespace-attributes.xml │ │ │ ├── element-exists-with-required-attributes-and-namespace-subelement.xml │ │ │ ├── element-exists-with-required-attributes.xml │ │ │ ├── element-present-multiple-times.xml │ │ │ └── narrative │ │ │ │ ├── element-exists-with-no-attributes-contains-text.xml │ │ │ │ ├── element-exists-with-no-attributes.xml │ │ │ │ └── element-exists-with-optional-attribute.xml │ │ │ └── transaction │ │ │ └── aid-type │ │ │ ├── _vocabulary │ │ │ └── attribute-exists.xml │ │ │ ├── element-present-once.xml │ │ │ └── multiple-occurence-of-element-in-context.xml │ └── iati-organisations │ │ └── iati-organisation │ │ ├── document-link │ │ ├── description │ │ │ ├── document-link-with-optional-description-element-and-namespace-attributes.xml │ │ │ ├── document-link-with-optional-description-element-and-namespace-subelement.xml │ │ │ ├── document-link-with-optional-description-element.xml │ │ │ └── narrative │ │ │ │ └── narrative-with-namespace-attribute.xml │ │ └── document-link-with-required-child-elements.xml │ │ └── only-required-elements-exist.xml └── test_schemas.py └── xml.xsd /LICENSE: -------------------------------------------------------------------------------- 1 | Please see https://github.com/IATI/IATI-Guidance/blob/master/en/license.rst 2 | -------------------------------------------------------------------------------- /make-zip.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | ######################################################################## 3 | # Package up a new IATI schema distribution. 4 | ######################################################################## 5 | 6 | SOURCE=/home/david/Documents/Work/IATI/Schemas 7 | TARGET=iati-schemas-dist-`date +%Y%m%d` 8 | 9 | cd $SOURCE 10 | 11 | rm -rf $TARGET 12 | mkdir $TARGET 13 | cp README.txt CHANGES.txt *.xsd $TARGET 14 | 15 | cp -av tests $TARGET 16 | find $TARGET -name '*~' | xargs rm -fv 17 | find $TARGET -name '.svn' | xargs rm -rf 18 | 19 | rm -rf $TARGET.zip 20 | zip -9vr $TARGET.zip $TARGET 21 | rm -rf $TARGET 22 | 23 | # end -------------------------------------------------------------------------------- /requirements-dev.txt: -------------------------------------------------------------------------------- 1 | # Testing tools 2 | lxml==5.4.0 3 | pytest==8.4.0 4 | -------------------------------------------------------------------------------- /test-data/run-activity-tests.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | IDML_SCHEMA=test-data/IDML2.0.xsd 4 | 5 | TEST_FILES="test-data/ocha-test-data.xml 6 | test-data/worked-example.xml" 7 | TEMP=/tmp/iati-test-output$$ 8 | 9 | for file in $TEST_FILES; do 10 | 11 | echo "****************************************************************" 12 | echo " Testing file $file" 13 | echo "****************************************************************\n" 14 | 15 | echo "Validating IATI file against schema ..." 16 | sh ./validate-iati-file.sh $file 17 | echo "done" 18 | 19 | echo "\nTransforming from IATI to IDML ..." 20 | sh ./transform-to-idml.sh $file > $TEMP 21 | echo "done" 22 | 23 | echo "\nValidating IDML output against schema ..." 24 | xmllint --noout --schema $IDML_SCHEMA $TEMP 25 | echo "done\n" 26 | 27 | #less $TEMP 28 | 29 | rm -f $TEMP 30 | 31 | done 32 | 33 | -------------------------------------------------------------------------------- /test-data/transform-to-idml.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | for file in $*; do 4 | xalan -in $file -xsl iati2idml.xslt | xmllint -format - 5 | done 6 | 7 | -------------------------------------------------------------------------------- /test-data/validate-iati-file.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | IATI_SCHEMA=iati-activities-schema.xsd 4 | 5 | xmllint --noout --schema $IATI_SCHEMA $* -------------------------------------------------------------------------------- /tests/activity-tests/foo.sh: -------------------------------------------------------------------------------- 1 | function fail { 2 | echo -n '[' 3 | tput setf 4 4 | echo -n FAIL 5 | tput setf 0 6 | echo -n '] ' 7 | echo $1 8 | } 9 | 10 | fail david -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/01-empty-activity.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/15-generated-datetime.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Organisation name 8 | <!-- 1 and only 1--> 9 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 10 | 11 | 12 | Xxxxxxx 13 | 14 | 15 | 16 | 17 | 18 | 19 | Some stuff ere 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/17-bad-hierarchy.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Organisation name 8 | <!-- 1 and only 1--> 9 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 10 | 11 | 12 | Xxxxxxx 13 | 14 | 15 | 16 | 17 | 18 | 19 | Some stuff ere 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/18-missing-iati-activities-version.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/19-has-iati-activity-version.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | xxx 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/20-two-reporting-orgs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Organisation name 9 | Organisation name 10 | 11 | <!-- 1 and only 1--> 12 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 13 | 14 | 15 | Xxxxxxx 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/22-missing-title-narrative.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | 8 | <!-- 1 and only 1--> 9 | <!--<narrative>Xxxxxxx</narrative>--> <!-- At least 1--> 10 | 11 | 12 | Xxxxxxx 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/23-missing-description-narrative.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | 8 | 9 | 10 | <!-- 1 and only 1--> 11 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/24-two-titles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | 8 | 9 | 10 | <!-- 1 and only 1--> 11 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 12 | 13 | <!-- 1 and only 1--> 14 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 15 | 16 | 17 | Xxxxxxx 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/26-two-activity-status.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/activity-scope/01-two-activity-scope.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Organisation name 8 | <!-- 1 and only 1--> 9 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 10 | 11 | 12 | Xxxxxxx 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/capital-spend/01-two-capital-spend.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/capital-spend/02-missing-attribute-percentage.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/capital-spend/03-contains-text.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | XXX 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/collaboration-type/01-two-collaboration-type.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/collaboration-type/02-missing-attribute-code.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/collaboration-type/03-contains-text.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | xxxxx 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/conditions/01-missing-attribute-attached.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Organisation name 8 | <!-- 1 and only 1--> 9 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 10 | 11 | 12 | Xxxxxxx 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | [some text here] 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/conditions/02-missing-attribute-type.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Organisation name 8 | <!-- 1 and only 1--> 9 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 10 | 11 | 12 | Xxxxxxx 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | [some text here] 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/conditions/03-missing-narrative.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Organisation name 8 | <!-- 1 and only 1--> 9 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 10 | 11 | 12 | Xxxxxxx 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/conditions/05-non-boolen-attribute-attached.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Organisation name 8 | <!-- 1 and only 1--> 9 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 10 | 11 | 12 | Xxxxxxx 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | [some text here] 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/country-budget-items/03-missing-budget-item.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Organisation name 8 | <!-- 1 and only 1--> 9 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 10 | 11 | 12 | Xxxxxxx 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/crs-add/01-non-decimal-interest-received.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | xxx 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/crs-add/04-non-decimal-prinicipal-arrears.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | xxx 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/crs-add/06-non-iso-date-commitment-date.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/crs-add/07-non-iso-date-repayment-first-date.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/crs-add/08-non-iso-date-value-date.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/crs-add/09-non-iso-date-repayment-final-date.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/crs-add/10-non-decimal-year.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/crs-add/21-non-decimal-rate-1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/crs-add/22-non-decimal-rate-2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/default-aid-type/02-missing-attribute-code.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/default-aid-type/03-contains-text.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | XXX 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/default-finance-type/01-two-default-finance-type.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/default-finance-type/02-missing-attribute-code.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/default-finance-type/03-contains-text.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | XXX 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/default-flow-type/01-two-default-flow-type.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/default-flow-type/02-missing-attribute-code.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/default-flow-type/03-contains-text.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | XXX 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/default-tied-status/01-two-default-tied-status.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/default-tied-status/02-missing-attribute-code.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/default-tied-status/03-contains-text.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | XXX 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/fss/02-missing-attribute-extraction-date.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20000 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/fss/03-missing-attribute-forecast-year.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/fss/04-missing-forecast-data.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/participating-org/01-activity-id-cardinality: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Organisation name 9 | 10 | <!-- 1 and only 1--> 11 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 12 | 13 | 14 | Xxxxxxx 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/participating-org/01-activity-id-empty.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Organisation name 9 | 10 | <!-- 1 and only 1--> 11 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 12 | 13 | 14 | Xxxxxxx 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/policy-marker/01-missing-code.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /tests/activity-tests/should-fail/sector/21-sector-missing-code.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | xxxx 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /tests/activity-tests/should-pass/02-minimal-doc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | Some stuff ere 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /tests/activity-tests/should-pass/03-top-level-extensibility.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | 20 | yyy 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /tests/activity-tests/should-pass/04-mixed-content-extensibility.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | xxx zzz 12 | yyy 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /tests/activity-tests/should-pass/09-legacy-data.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 8 | 9 | Organisation name 10 | <!-- 1 and only 1--> 11 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 12 | 13 | 14 | Xxxxxxx 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/activity-tests/should-pass/11-hierarchy.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 8 | 9 | 10 | Organisation name 11 | <!-- 1 and only 1--> 12 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 13 | 14 | 15 | Xxxxxxx 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /tests/activity-tests/should-pass/12-version.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Organisation name 8 | <!-- 1 and only 1--> 9 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 10 | 11 | 12 | Xxxxxxx 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /tests/activity-tests/should-pass/23-activity-status.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /tests/activity-tests/should-pass/25-linked-data.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /tests/activity-tests/should-pass/30-capital-spend.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Organisation name 8 | <!-- 1 and only 1--> 9 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 10 | 11 | 12 | Xxxxxxx 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /tests/activity-tests/should-pass/32-activity-scope.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Organisation name 8 | <!-- 1 and only 1--> 9 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 10 | 11 | 12 | Xxxxxxx 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /tests/activity-tests/should-pass/34-sector.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | xxxx 20 | 21 | 22 | xxxx 23 | xxxx 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /tests/activity-tests/should-pass/36-collaboration-type.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /tests/activity-tests/should-pass/37-default-flow-type.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /tests/activity-tests/should-pass/38-default-finance-type.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /tests/activity-tests/should-pass/39-default-aid-type.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /tests/activity-tests/should-pass/40-default-tied-status.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /tests/activity-tests/should-pass/43-conditions-no-conditions.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Organisation name 8 | <!-- 1 and only 1--> 9 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 10 | 11 | 12 | Xxxxxxx 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /tests/activity-tests/should-pass/46-fss-minimal-attributes.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20000 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /tests/activity-tests/should-pass/47-two-descriptions.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | 12 | Xxxxxxx 13 | 14 | 15 | Xxxxxxx 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/activity-tests/should-pass/crs-add/01-crs-add-minimum.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/activity-tests/should-pass/crs-add/03-crs-add-just-other-flags.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/activity-tests/should-pass/crs-add/05-crs-add-just-loan-status.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/activity-tests/should-pass/crs-add/06-crs-add-just-loan-terms.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /tests/activity-tests/should-pass/humanitarian/01-humanitarian-activity-flag.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | Some stuff ere 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/01-empty-organization.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/02-top-level-extensibility.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 9 | 10 | 12345 11 | 12 | Name here 13 | 14 | 15 | Organisation name 16 | 17 | 18 | 19 | yyy 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/03-attribute-extensibility.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 12345 11 | 12 | 13 | Name here 14 | 15 | 16 | Organisation name 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/04-currencyType.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 12345 6 | 7 | 8 | A100.00 9 | 10 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/05-value-date.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 12345 6 | 7 | 8 | 100 9 | 10 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/06-value-date.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 12345 6 | 7 | 8 | 9 | 100 10 | 11 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/08-value-type.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 12345 6 | 7 | 100 8 | 9 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/10-recipient-country-ref.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 12345 5 | 6 | X 7 | 8 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/11-generated-datetime.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12345 8 | 9 | Name here 10 | 11 | 12 | Organisation name 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/12-last-updated-datetime.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12345 8 | 9 | Name here 10 | 11 | 12 | Organisation name 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/13-missing-name.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/14-missing-name-narrative.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/15-missing-organisation-identifier.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/16-missing-version.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/17-version-on-iati-organisation.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/18-missing-reporting-org-narrative.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/document-link/01-missing-title-narrative.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | <!--<narrative>Document title</narrative>--> <!-- should be at least 1 --> <!--but currently this passes --> 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/document-link/02-missing-category.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | <narrative>Document title</narrative> <!-- should be at least 1 --> <!--but currently this passes --> 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/document-link/03-missing-title.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/document-link/04-missing-attribute-url.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | <narrative>Document title</narrative> 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/document-link/05-missing-attribute-format.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | <narrative>Document title</narrative> 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/document-link/07-two-titles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | <narrative>Document title</narrative> 17 | 18 | 19 | <narrative>Document title</narrative> 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/document-link/08-missing-attribute-category-code.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | <narrative>Document title</narrative> 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/document-link/10-missing-attribute-language-code.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | <narrative>Document title</narrative> 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/document-link/11-missing-attribute-recipient-country-code.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | <narrative>Document title</narrative> 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/document-link/12-contains-text-category.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | <narrative>Document title</narrative> 17 | 18 | 19 | text 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/document-link/13-contains-text-language.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | <narrative>Document title</narrative> 17 | 18 | 19 | 20 | text 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/document-link/14-contains-text-recipient-country.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | <narrative>Document title</narrative> 17 | 18 | 19 | 20 | text 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/document-link/15-non-iso-date.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | <narrative>Document title</narrative> 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-country-budget/01-missing-period-start.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 18 | 10000.11 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-country-budget/02-missing-period-end.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 18 | 10000.11 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-country-budget/03-missing-value.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-country-budget/04-missing-attribute-period-start-iso-date.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 18 | 10000.11 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-country-budget/05-missing-attribute-period-end-iso-date.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 18 | 10000.11 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-country-budget/06-missing-attribute-value-date.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 18 | 10000.11 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-country-budget/07-non-decimal-value.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 18 | xx 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-country-budget/08-non-iso-date-period-start.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 18 | 1.1 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-country-budget/09-non-iso-date-period-end.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 18 | 100.34 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-country-budget/10-non-iso-date-value-date.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 18 | 100.23 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-country-budget/11-contains-text-period-start.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | text 17 | 18 | 1.1 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-country-budget/12-contains-text-period-end.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | text 18 | 1.1 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-country-budget/13-two-period-start.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 10000.11 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-country-budget/14-two-period-end.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 10000.11 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-country-budget/15-two-value.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 18 | 10000.11 19 | 10000.11 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-country-budget/19-missing-recipient-country.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 18 | 10000.11 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-country-budget/20-missing-attribute-recipient-country-code.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 18 | 10000.11 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-country-budget/21-contains-text-recipient-country.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | text 16 | 17 | 18 | 10000.11 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-country-budget/replace.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | ######################################################################## 3 | # Replace strings in tests. 4 | ######################################################################## 5 | 6 | for f in *.xml; do 7 | sed -i 's/total-budget/recipient-country-budget/' $f 8 | done 9 | 10 | 11 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-org-budget/01-missing-period-start.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | No Code 17 | 18 | 19 | 20 | 10000.11 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-org-budget/02-missing-period-end.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | No Code 17 | 18 | 19 | 20 | 10000.11 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-org-budget/03-missing-value.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | No Code 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-org-budget/04-missing-attribute-period-start-iso-date.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | No Code 17 | 18 | 19 | 20 | 10000.11 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-org-budget/05-missing-attribute-period-end-iso-date.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | No Code 17 | 18 | 19 | 20 | 10000.11 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-org-budget/06-missing-attribute-value-date.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | No Code 17 | 18 | 19 | 20 | 10000.11 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-org-budget/07-non-decimal-value.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | No Code 17 | 18 | 19 | 20 | xx 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-org-budget/08-non-iso-date-period-start.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | No Code 17 | 18 | 19 | 20 | 1.1 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-org-budget/09-non-iso-date-period-end.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | No Code 17 | 18 | 19 | 20 | 100.34 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-org-budget/10-non-iso-date-value-date.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | No Code 17 | 18 | 19 | 20 | 100.23 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-org-budget/11-contains-text-period-start.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | No Code 17 | 18 | text 19 | 20 | 1.1 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-org-budget/12-contains-text-period-end.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | No Code 17 | 18 | 19 | text 20 | 1.1 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-org-budget/13-two-period-start.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | No Code 17 | 18 | 19 | 20 | 21 | 22 | 10000.11 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-org-budget/14-two-period-end.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | No Code 17 | 18 | 19 | 20 | 21 | 22 | 10000.11 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-org-budget/15-two-value.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | No Code 17 | 18 | 19 | 20 | 10000.11 21 | 10000.11 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-org-budget/19-recipient-org.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 18 | 19 | 20 | 10000.11 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-org-budget/20-recipient-org-narrative.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 10000.11 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-org-budget/21-two-recipient-org.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | No Code 17 | 18 | 19 | No Code 20 | 21 | 22 | 23 | 10000.11 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-region-budget/04-non-decimal-value.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 18 | xx 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-region-budget/05-non-iso-date-period-start.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 18 | 1.1 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-region-budget/06-non-iso-date-period-end.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 18 | 100.34 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-region-budget/07-non-iso-date-value-date.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 18 | 100.23 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-region-budget/08-contains-text-period-start.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | text 17 | 18 | 1.1 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-region-budget/09-contains-text-period-end.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | text 18 | 1.1 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-region-budget/10-two-period-start.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 10000.11 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-region-budget/11-two-period-end.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 10000.11 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-region-budget/12-two-value.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | -> 18 | 10000.11 19 | 10000.11 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-region-budget/14-two-recipient-region.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 10000.11 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-region-budget/16-missing-period-start.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 18 | 1.1 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-region-budget/17-missing-period-end.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 18 | 1.1 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-region-budget/18-missing-value.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | --> 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/recipient-region-budget/19-missing-value-date.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | --> 18 | 19 | 1.1 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/reporting-org/01-missing-reporting-org.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/reporting-org/02-missing-attribute-ref.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/reporting-org/03-missing-attribute-type.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/reporting-org/04-non-boolean-secondary-reporter.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/total-budget/01-missing-period-start.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 10000.11 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/total-budget/02-missing-period-end.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 10000.11 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/total-budget/03-missing-value.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/total-budget/04-missing-attribute-period-start-iso-date.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 10000.11 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/total-budget/05-missing-attribute-period-end-iso-date.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 10000.11 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/total-budget/06-missing-attribute-value-date.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 10000.11 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/total-budget/07-non-decimal-value.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | xx 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/total-budget/08-non-iso-date-period-start.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 1.1 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/total-budget/09-non-iso-date-period-end.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 100.34 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/total-budget/10-non-iso-date-value-date.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 100.23 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/total-budget/11-contains-text-period-start.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | text 16 | 17 | 1.1 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/total-budget/12-contains-text-period-end.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | text 17 | 1.1 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/total-budget/13-two-period-start.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 10000.11 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/total-budget/14-two-period-end.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 10000.11 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/total-budget/15-two-value.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 10000.11 18 | 10000.11 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/total-expenditure/01-missing-period-start.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 10000.11 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/total-expenditure/02-missing-period-end.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 10000.11 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/total-expenditure/03-missing-value.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/total-expenditure/04-missing-attribute-period-start-iso-date.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 10000.11 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/total-expenditure/05-missing-attribute-period-end-iso-date.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 10000.11 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/total-expenditure/06-missing-attribute-value-date.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 10000.11 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/total-expenditure/07-non-decimal-value.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | xx 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/total-expenditure/08-non-iso-date-period-start.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 1.1 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/total-expenditure/09-non-iso-date-period-end.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 100.34 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/total-expenditure/10-non-iso-date-value-date.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 100.23 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/total-expenditure/11-contains-text-period-start.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | text 16 | 17 | 1.1 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/total-expenditure/12-contains-text-period-end.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | text 17 | 1.1 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/total-expenditure/13-two-period-start.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 10000.11 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/total-expenditure/14-two-period-end.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 10000.11 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-fail/total-expenditure/15-two-value.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | 17 | 10000.11 18 | 10000.11 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-pass/00-container.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | French Name here 10 | 11 | 12 | Some text here 13 | Spanish text here 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-pass/01-minimal-organization.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-pass/02-top-level-extensibility.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 9 | 10 | 12345 11 | 12 | Name here 13 | 14 | 15 | Organisation name 16 | 17 | 18 | 19 | yyy 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-pass/03-attribute-extensibility.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12345 8 | 9 | 10 | 11 | Name here 12 | 13 | 14 | 15 | Organisation name 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-pass/05-version.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | Organisation name 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /tests/organisation-tests/should-pass/08-reporting-org.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | 12 | Name 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /tests/registry-tests/run-tests.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | ######################################################################## 3 | # Registry record schema tests. 4 | ######################################################################## 5 | 6 | SCHEMA=../../iati-registry-record-schema.xsd 7 | exitcode=0 8 | 9 | function fail { 10 | echo -n '[' 11 | tput setf 4 12 | echo -n FAIL 13 | tput setf 0 14 | echo -n '] ' 15 | echo $1 16 | } 17 | 18 | function pass { 19 | echo -n '[' 20 | tput setf 2 21 | echo -n PASS 22 | tput setf 0 23 | echo -n '] ' 24 | echo $1 25 | } 26 | 27 | 28 | for f in should-fail/*.xml; do 29 | xmllint -noout --schema $SCHEMA $f >/dev/null 2>&1 30 | if [ $? -eq 0 ]; then 31 | fail $f 32 | exitcode=1 33 | else 34 | pass $f 35 | fi 36 | done 37 | 38 | for f in should-pass/*.xml; do 39 | xmllint -noout --schema $SCHEMA $f >/dev/null 2>&1 40 | if [ $? -eq 0 ]; then 41 | pass $f 42 | else 43 | fail $f 44 | exitcode=1 45 | fi 46 | done 47 | 48 | exit $exitcode 49 | -------------------------------------------------------------------------------- /tests/registry-tests/should-fail/01-missing-file-id.xml: -------------------------------------------------------------------------------- 1 | 2 | 13 | -------------------------------------------------------------------------------- /tests/registry-tests/should-fail/02-bad-extension.xml: -------------------------------------------------------------------------------- 1 | 2 | 15 | -------------------------------------------------------------------------------- /tests/registry-tests/should-pass/01-minimum.xml: -------------------------------------------------------------------------------- 1 | 2 | 14 | -------------------------------------------------------------------------------- /tests/registry-tests/should-pass/02-email.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | -------------------------------------------------------------------------------- /tests/registry-tests/should-pass/03-extension.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | bar 19 | -------------------------------------------------------------------------------- /tests/registry-tests/should-pass/04-donor-country.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | -------------------------------------------------------------------------------- /tests/registry-tests/should-pass/05-xml-lang.xml: -------------------------------------------------------------------------------- 1 | 2 | 15 | -------------------------------------------------------------------------------- /tests/registry-tests/should-pass/06-activity-period.xml: -------------------------------------------------------------------------------- 1 | 2 | 15 | -------------------------------------------------------------------------------- /tests/run-tests.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | ######################################################################## 3 | # Run complete schema test suite. 4 | ######################################################################## 5 | 6 | DIRS="activity-tests organisation-tests registry-tests" 7 | exitcode=0 8 | 9 | for d in $DIRS; do 10 | echo $d ... 11 | script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # The full path of the directory that this script is in, no matter where it is called from 12 | test_dir_path=$script_dir/$d # The full path of the test folder 13 | $SHELL -c "cd $test_dir_path && $SHELL run-tests.sh" # Run the test script 14 | if [ $? = 1 ]; then 15 | exitcode=1 16 | fi 17 | echo $exitcode 18 | echo 19 | done 20 | 21 | echo "[done]" 22 | echo $exitcode 23 | exit $exitcode 24 | # end 25 | -------------------------------------------------------------------------------- /tests/should-fail/iati-activities/iati-activity/tag/err-not-iati-xml-missing-attribute.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | 8 | <narrative>Xxxxxxx</narrative> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | Some stuff ere 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /tests/should-fail/iati-organisations/iati-organisation/document-link/description/err-not-iati-xml-missing-required-element_document-link-with-multiple-description-elements.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | <narrative>Sample text</narrative> 16 | 17 | 18 | Sample text 19 | 20 | 21 | Sample text 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /tests/should-fail/iati-organisations/iati-organisation/document-link/description/err-not-iati-xml-missing-required-element_document-link-with-optional-description-element-no-narrative.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | <narrative>Sample text</narrative> 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /tests/should-fail/iati-organisations/iati-organisation/err-not-iati-xml-missing-required-element_no-required-elements-exist.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /tests/should-pass/iati-activities/iati-activity/default-aid-type/_vocabulary/attribute-exists.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | 8 | <narrative>Xxxxxxx</narrative> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | Some stuff ere 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /tests/should-pass/iati-activities/iati-activity/default-aid-type/element-exists-multiple-times.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | 8 | <narrative>Xxxxxxx</narrative> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | Some stuff ere 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /tests/should-pass/iati-activities/iati-activity/default-aid-type/element-exists-with-required-subelements-only.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | 8 | <narrative>Xxxxxxx</narrative> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | Some stuff ere 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /tests/should-pass/iati-activities/iati-activity/default-aid-type/element-exists.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | 8 | <narrative>Xxxxxxx</narrative> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | Some stuff ere 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /tests/should-pass/iati-activities/iati-activity/document-link/document-link-with-required-child-elements.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Organisation name 8 | 9 | 10 | <narrative>Xxxxxxx</narrative> 11 | 12 | 13 | Xxxxxxx 14 | 15 | 16 | 17 | 18 | 19 | Some stuff ere 20 | 21 | 22 | 23 | <narrative>Sample text</narrative> 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /tests/should-pass/iati-activities/iati-activity/only-required-elements-exist.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | <!-- 1 and only 1--> 8 | <narrative>Xxxxxxx</narrative> <!-- At least 1--> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | Some stuff ere 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /tests/should-pass/iati-activities/iati-activity/participation-org/_crs-channel-code/attribute-exists.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | 8 | <narrative>Xxxxxxx</narrative> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | Some stuff ere 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /tests/should-pass/iati-activities/iati-activity/tag/element-exists-with-required-and-optional-attributes.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | 8 | <narrative>Xxxxxxx</narrative> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | Some stuff ere 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /tests/should-pass/iati-activities/iati-activity/tag/element-exists-with-required-attributes-and-namespace-attributes.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | 8 | <narrative>Xxxxxxx</narrative> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | Some stuff ere 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /tests/should-pass/iati-activities/iati-activity/tag/element-exists-with-required-attributes.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | 8 | <narrative>Xxxxxxx</narrative> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | Some stuff ere 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /tests/should-pass/iati-activities/iati-activity/tag/element-present-multiple-times.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | 8 | <narrative>Xxxxxxx</narrative> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | Some stuff ere 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /tests/should-pass/iati-activities/iati-activity/tag/narrative/element-exists-with-no-attributes-contains-text.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | 8 | <narrative>Xxxxxxx</narrative> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | Some stuff ere 18 | 19 | 20 | Sample text 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /tests/should-pass/iati-activities/iati-activity/tag/narrative/element-exists-with-no-attributes.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | 8 | <narrative>Xxxxxxx</narrative> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | Some stuff ere 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /tests/should-pass/iati-activities/iati-activity/tag/narrative/element-exists-with-optional-attribute.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | 8 | <narrative>Xxxxxxx</narrative> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | Some stuff ere 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /tests/should-pass/iati-activities/iati-activity/transaction/aid-type/_vocabulary/attribute-exists.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | 8 | <narrative>Xxxxxxx</narrative> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 100 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /tests/should-pass/iati-activities/iati-activity/transaction/aid-type/element-present-once.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | 8 | <narrative>Xxxxxxx</narrative> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 100 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /tests/should-pass/iati-activities/iati-activity/transaction/aid-type/multiple-occurence-of-element-in-context.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Organisation name 7 | 8 | <narrative>Xxxxxxx</narrative> 9 | 10 | 11 | Xxxxxxx 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 100 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/should-pass/iati-organisations/iati-organisation/document-link/description/document-link-with-optional-description-element-and-namespace-attributes.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | <narrative>Sample text</narrative> 16 | 17 | 18 | Sample text 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/should-pass/iati-organisations/iati-organisation/document-link/description/document-link-with-optional-description-element.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | <narrative>Sample text</narrative> 16 | 17 | 18 | Sample text 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/should-pass/iati-organisations/iati-organisation/document-link/description/narrative/narrative-with-namespace-attribute.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | <narrative>Sample text</narrative> 16 | 17 | 18 | Sample text 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/should-pass/iati-organisations/iati-organisation/document-link/document-link-with-required-child-elements.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | <narrative>Sample text</narrative> 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /tests/should-pass/iati-organisations/iati-organisation/only-required-elements-exist.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12345 7 | 8 | Name here 9 | 10 | 11 | Organisation name 12 | 13 | 14 | 15 | 16 | --------------------------------------------------------------------------------