Skip to content

Commit

Permalink
Merge pull request #22 from blw-ofag-ufag/improvements/v1/consistency…
Browse files Browse the repository at this point in the history
…-with-spec

Improvements/v1/consistency with spec
  • Loading branch information
lars-steffen authored Jan 26, 2024
2 parents 5a3b89f + b6cf472 commit 52cd838
Showing 1 changed file with 93 additions and 20 deletions.
113 changes: 93 additions & 20 deletions src/eCH-0261-1-0.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ Datum Version Autor
<xs:documentation xml:lang="en">Enterprise responsible for inspection</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="nprCertified" type="xs:boolean" minOccurs="0">
<xs:element name="nprCertified" type="eCH-0261:veracityType">
<xs:annotation>
<xs:documentation xml:lang="de">NPR-Zulassung (Zertifizierung auf der Grundlage des Programms zur Reduzierung von Stickstoff und Phosphor).</xs:documentation>
<xs:documentation xml:lang="fr">Certification basée sur le programme de réduction de l'azote et des phosphores.</xs:documentation>
Expand Down Expand Up @@ -263,7 +263,7 @@ Datum Version Autor
<xs:documentation xml:lang="en">See the referenced standard.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="dateOfBirth" type="xs:date" minOccurs="0">
<xs:element name="dateOfBirth" type="eCH-0044:datePartiallyKnownType" minOccurs="0">
<xs:annotation>
<xs:documentation xml:lang="de">Geburtsdatum</xs:documentation>
<xs:documentation xml:lang="fr">date de naissance</xs:documentation>
Expand Down Expand Up @@ -300,12 +300,17 @@ Datum Version Autor
<xs:documentation xml:lang="en">identifier of a person</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="personFunction" type="eCH-0261:personFunctionType" minOccurs="1" maxOccurs="unbounded">
<xs:element name="personFunction" minOccurs="1" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation xml:lang="de">Funktionen der Person</xs:documentation>
<xs:documentation xml:lang="fr">Fonctions de la personne</xs:documentation>
<xs:documentation xml:lang="en">Functions of a person</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:maxLength value="50"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
Expand All @@ -316,15 +321,15 @@ Datum Version Autor
<xs:documentation xml:lang="en">The role of a person</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="personFunction-Code">
<xs:element name="personFunctionCode">
<xs:annotation>
<xs:documentation xml:lang="de">Code der Rolle</xs:documentation>
<xs:documentation xml:lang="fr">Code du rôle</xs:documentation>
<xs:documentation xml:lang="en">Code of the role</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:maxLength value="6"/>
<xs:maxLength value="50"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
Expand All @@ -343,7 +348,7 @@ Datum Version Autor
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:maxLength value="256"/>
<xs:maxLength value="255"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
Expand Down Expand Up @@ -398,7 +403,7 @@ Datum Version Autor
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:maxLength value="256"/>
<xs:maxLength value="255"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
Expand All @@ -410,7 +415,7 @@ Datum Version Autor
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:maxLength value="256"/>
<xs:maxLength value="255"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
Expand All @@ -422,7 +427,7 @@ Datum Version Autor
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:maxLength value="256"/>
<xs:maxLength value="255"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
Expand All @@ -434,7 +439,7 @@ Datum Version Autor
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:maxLength value="256"/>
<xs:maxLength value="255"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
Expand All @@ -446,7 +451,7 @@ Datum Version Autor
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:maxLength value="256"/>
<xs:maxLength value="255"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
Expand All @@ -458,7 +463,7 @@ Datum Version Autor
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:maxLength value="256"/>
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
Expand Down Expand Up @@ -502,14 +507,6 @@ Datum Version Autor
<xs:documentation xml:lang="en">degree Celcius</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="ρ">
<xs:annotation>
<xs:documentation xml:lang="de">Raumgewicht</xs:documentation>
<xs:documentation xml:lang="fr">masse spécifique</xs:documentation>
<xs:documentation xml:lang="it">massa specifica</xs:documentation>
<xs:documentation xml:lang="en">Specific mass</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="γ">
<xs:annotation>
<xs:documentation xml:lang="de">gamma</xs:documentation>
Expand Down Expand Up @@ -592,6 +589,82 @@ Datum Version Autor
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="measureType">
<xs:annotation>
<xs:documentation xml:lang="de">Messung mit Wert und Einheit</xs:documentation>
<xs:documentation xml:lang="fr">Mesure avec valeur et unité</xs:documentation>
<xs:documentation xml:lang="en">Measurement with value and unit</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="value" type="xs:decimal">
<xs:annotation>
<xs:documentation xml:lang="de">Menge, Wert</xs:documentation>
<xs:documentation xml:lang="fr">Quantité, valeur</xs:documentation>
<xs:documentation xml:lang="en">Quantity, value</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="unit" type="eCH-0261:unitType">
<xs:annotation>
<xs:documentation xml:lang="de">Zugehörige Einheit</xs:documentation>
<xs:documentation xml:lang="fr">Unité associée</xs:documentation>
<xs:documentation xml:lang="en">Associated unit</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="unitName" minOccurs="0">
<xs:annotation>
<xs:documentation xml:lang="de">Genauere Bezeichnung der Einheit, wenn im Feld «unit» die Einheit «pc» (Stück) angegeben wurde.</xs:documentation>
<xs:documentation xml:lang="fr">Désignation plus précise de l'unité, si l'unité "pc" (pièce) a été indiquée dans le champ "unit".</xs:documentation>
<xs:documentation xml:lang="en">More precise designation of the unit if the unit "pc" (piece) was specified in the "unit" field.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:maxLength value="50"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="veracityType">
<xs:annotation>
<xs:documentation xml:lang="de">Wahrheitswert</xs:documentation>
<xs:documentation xml:lang="fr">Valeur de vérité</xs:documentation>
<xs:documentation xml:lang="en">Truth value</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:token">
<xs:enumeration value="TRUE">
<xs:annotation>
<xs:documentation xml:lang="de">Wahr</xs:documentation>
<xs:documentation xml:lang="fr">Vrai</xs:documentation>
<xs:documentation xml:lang="it">Vero</xs:documentation>
<xs:documentation xml:lang="en">True</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="FALSE">
<xs:annotation>
<xs:documentation xml:lang="de">Falsch</xs:documentation>
<xs:documentation xml:lang="fr">Faux</xs:documentation>
<xs:documentation xml:lang="it">Sbagliato</xs:documentation>
<xs:documentation xml:lang="en">False</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="NA">
<xs:annotation>
<xs:documentation xml:lang="de">Nicht anwendbar</xs:documentation>
<xs:documentation xml:lang="fr">Non applicable</xs:documentation>
<xs:documentation xml:lang="it">Non applicabile</xs:documentation>
<xs:documentation xml:lang="en">Not applicable</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="UNDEFINED">
<xs:annotation>
<xs:documentation xml:lang="de">Undefiniert</xs:documentation>
<xs:documentation xml:lang="fr">Non défini</xs:documentation>
<xs:documentation xml:lang="it">Non definito</xs:documentation>
<xs:documentation xml:lang="en">Undefined</xs:documentation>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="enumeratedItemType">
<xs:annotation>
<xs:documentation xml:lang="de">Dieses Element ist für Listen beabsichtigt, die Identifikatoren und Deskriptoren beinhalten. Solche Listen können statischer oder dynamischer Natur sein.</xs:documentation>
Expand Down

0 comments on commit 52cd838

Please sign in to comment.