Skip to content

Commit

Permalink
Merge pull request #498 from IATI/allow-multiple-default-aid-type
Browse files Browse the repository at this point in the history
Allow multiple default aid type
  • Loading branch information
Ocre42 authored Sep 25, 2018
2 parents acfa16c + 3869fbe commit 08379df
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,25 @@ Example Usage
~~~~~~~~~~~~~
Example ``default-aid-type`` for an ``iati-activity``.

| The ``@code`` attribute declares a valid code (*A01*) from the *AidType* codelist.
| The ``@code`` attribute declares a valid code from the specified codelist.
| The ``@vocabulary`` attribute declares a valid code (*1*) from the *AidTypeVocabulary* codelist.
.. code-block:: xml
<default-aid-type code="A01" vocabulary="1" />
The default-aid-type element can be repeated in any iati-activity.

.. literalinclude:: ../../activity-standard-example-annotated.xml
:language: xml
:start-after: <!--default-aid-type starts-->
:end-before: <!--default-aid-type ends-->

The vocabulary is used to declare which AidType list is in use. If omitted, an AidType Vocabulary of 1 (OECD DAC) is assumed.

| Note: The ``aid-type`` element can override the ``default-aid-type`` value set in ``iati-activity``
Changelog
~~~~~~~~~
2.03
Expand Down

0 comments on commit 08379df

Please sign in to comment.