Skip to content

Commit

Permalink
Merge pull request #48 from emrex-eu/v1.5-preview
Browse files Browse the repository at this point in the history
V1.5
  • Loading branch information
mpuzar authored Dec 23, 2019
2 parents 0082151 + 03f2719 commit d1b6fb3
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ its initial `1.0.0` release.

Please note, that all changes in the `v1` branch will be backward-compatible.

Version 1.5.0
-------------

* Added support for additional fields on the learner (placeOfBirh, birthName, currentAddress, gender). See [this issue](https://github.com/emrex-eu/elmo-schemas/issues/44)
* Signature on the elmo element is now optional. See [this issue](https://github.com/erasmus-without-paper/ewp-specs-api-imobility-tors/issues/7)

Version 1.4.0
-------------

Expand Down
73 changes: 71 additions & 2 deletions schema.xsd
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema elementFormDefault="qualified" targetNamespace="https://github.com/emrex-eu/elmo-schemas/tree/v1" xmlns="https://github.com/emrex-eu/elmo-schemas/tree/v1" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:europass="http://europass.cedefop.europa.eu/Europass/V2.0" xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:schema elementFormDefault="qualified" targetNamespace="https://github.com/emrex-eu/elmo-schemas/tree/v1"
xmlns="https://github.com/emrex-eu/elmo-schemas/tree/v1"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:europass="http://europass.cedefop.europa.eu/Europass/V2.0"
xmlns:xml="http://www.w3.org/XML/1998/namespace"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:ewpAddress="https://github.com/erasmus-without-paper/ewp-specs-types-address/tree/stable-v1"
>
<xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/03/xml.xsd"/>
<xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="https://raw.githubusercontent.com/emrex-eu/elmo-schemas/v1/references/xmldsig-core-schema.xsd"/>
<xs:import namespace="http://europass.cedefop.europa.eu/Europass/V2.0" schemaLocation="https://raw.githubusercontent.com/emrex-eu/elmo-schemas/v1/references/EUROPASS_ISOCountries_V1.1.xsd"/>
<xs:import namespace="https://github.com/erasmus-without-paper/ewp-specs-types-address/tree/stable-v1" schemaLocation="https://raw.githubusercontent.com/erasmus-without-paper/ewp-specs-types-address/stable-v1/schema.xsd"/>
<xs:annotation>
<xs:documentation>This schema describes the EMREX ELMO XML format, used for formatting students'
Transcripts of Records.
Expand Down Expand Up @@ -251,6 +259,67 @@
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" maxOccurs="1" name="placeOfBirth" type="xs:token">
<xs:annotation>
<xs:documentation>The student's place of birth.

For server implementers: If this is not known then you MUST skip the element
altogether (instead of, for example, providing an empty value).
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" maxOccurs="1" name="birthName" type="xs:token">
<xs:annotation>
<xs:documentation>First name(s) and family name(s) of the student at birth, described as a single text value.

For server implementers: If this is not known then you MUST skip the element
altogether (instead of, for example, providing an empty value).
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" maxOccurs="1" name="currentAddress" type="ewpAddress:FlexibleAddress">
<xs:annotation>
<xs:documentation>
The student's current physical address. This is the address which should work when, for example,
the user pastes it (without the recipientName part) into Google Maps.

This element has been described in detail in Erasmus Without Paper:
https://github.com/erasmus-without-paper/ewp-specs-types-address
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" maxOccurs="1" name="gender">
<xs:annotation>
<xs:documentation>ISO/IEC 5218 code of human gender.

https://en.wikipedia.org/wiki/ISO/IEC_5218
</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:enumeration value="0">
<xs:annotation>
<xs:documentation>Unknown - the gender of the person has not been recorded.</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="1">
<xs:annotation>
<xs:documentation>Male</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="2">
<xs:annotation>
<xs:documentation>Female</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="9">
<xs:annotation>
<xs:documentation>Not Applicable - indeterminate, i.e. unable to be classified as either male or female</xs:documentation>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
Expand Down Expand Up @@ -449,7 +518,7 @@
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="extension" type="CustomExtensionsContainer"/>
<xs:element ref="ds:Signature">
<xs:element minOccurs="0" maxOccurs="1" ref="ds:Signature">
<xs:annotation>
<xs:documentation>Every EMREX ELMO element MUST be signed with xmldsig-core2 enveloped signature. The
ds:SignedInfo element MUST contain a single ds:Reference with an empty URI. The
Expand Down

0 comments on commit d1b6fb3

Please sign in to comment.