diff --git a/iati-activities-schema.xsd b/iati-activities-schema.xsd index 7e0d71ce..4096473c 100644 --- a/iati-activities-schema.xsd +++ b/iati-activities-schema.xsd @@ -468,7 +468,7 @@ - + The type of aid being supplied (project-type intervention, @@ -477,19 +477,6 @@ be overridden at the individual transaction level. - - - - - - - - A code from the specified vocabulary. - - - - - @@ -1309,7 +1296,7 @@ - + Optional element to override the top-level @@ -1317,19 +1304,6 @@ transaction-by-transaction basis if needed. - - - - - - - - A code from the OECD DAC CRS "Type of aid" codelist - - - - - @@ -2683,6 +2657,27 @@ + + + + + + + + + A code from the specified vocabulary. + + + + + + + A code for the vocabulary aid-type classifications. If omitted the AidType (OECD DAC) codelist is assumed. The code must be a valid value in the AidTypeVocabulary codelist. + + + + + diff --git a/tests/should-pass/iati-activities/iati-activity/default-aid-type/_vocabulary/attribute-exists.xml b/tests/should-pass/iati-activities/iati-activity/default-aid-type/_vocabulary/attribute-exists.xml new file mode 100644 index 00000000..80b94f9b --- /dev/null +++ b/tests/should-pass/iati-activities/iati-activity/default-aid-type/_vocabulary/attribute-exists.xml @@ -0,0 +1,21 @@ + + + + + + Organisation name + + <narrative>Xxxxxxx</narrative> + + + Xxxxxxx + + + + + + Some stuff ere + + + + diff --git a/tests/should-pass/iati-activities/iati-activity/default-aid-type/element-exists-with-required-subelements-only.xml b/tests/should-pass/iati-activities/iati-activity/default-aid-type/element-exists-with-required-subelements-only.xml new file mode 100644 index 00000000..b7779f3f --- /dev/null +++ b/tests/should-pass/iati-activities/iati-activity/default-aid-type/element-exists-with-required-subelements-only.xml @@ -0,0 +1,21 @@ + + + + + + Organisation name + + <narrative>Xxxxxxx</narrative> + + + Xxxxxxx + + + + + + Some stuff ere + + + + diff --git a/tests/should-pass/iati-activities/iati-activity/transaction/aid-type/_vocabulary/attribute-exists.xml b/tests/should-pass/iati-activities/iati-activity/transaction/aid-type/_vocabulary/attribute-exists.xml new file mode 100644 index 00000000..a2a10e6c --- /dev/null +++ b/tests/should-pass/iati-activities/iati-activity/transaction/aid-type/_vocabulary/attribute-exists.xml @@ -0,0 +1,23 @@ + + + + + + Organisation name + + <narrative>Xxxxxxx</narrative> + + + Xxxxxxx + + + + + + + + 100 + + + + diff --git a/tests/should-pass/iati-activities/iati-activity/transaction/aid-type/element-present-once.xml b/tests/should-pass/iati-activities/iati-activity/transaction/aid-type/element-present-once.xml index f788f4f6..8458979a 100644 --- a/tests/should-pass/iati-activities/iati-activity/transaction/aid-type/element-present-once.xml +++ b/tests/should-pass/iati-activities/iati-activity/transaction/aid-type/element-present-once.xml @@ -17,7 +17,7 @@ 100 - +