Fixed paths for XSD

This commit is contained in:
Simon Martens
2024-05-08 09:48:12 +02:00
parent 9cbc5322ad
commit 6d7748405c
4 changed files with 17 additions and 18 deletions

View File

@@ -15,14 +15,14 @@
<xsd:sequence>
<xsd:element name="name" type="NonEmptyString" minOccurs="1" maxOccurs="1" nillable="false" />
</xsd:sequence>
<xsd:attribute name="index" type="xsd:integer" use="required" />
<xsd:attribute name="id" type="xsd:integer" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:unique name="uniqueIndexKategorien">
<xsd:selector xpath="kgpz:kategorie" />
<xsd:field xpath="@index" />
<xsd:field xpath="@id" />
</xsd:unique>
</xsd:element>

View File

@@ -2,12 +2,11 @@
<akteure xmlns="https://www.kgpz.de"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://www.kgpz.de XSD/KGPZ.xsd">
<akteur index="1">
<akteur id="1">
<name>Albert Einstein</name>
<name>Ainshutain, A.</name>
<sortiername>Einstein, Albert</sortiername>
<geburtsdatum>1879-03-14</geburtsdatum>
<sterbedatum>1955-04-18</sterbedatum>
<lebensdaten>1955-04-18</lebensdaten>
<gnd>https://d-nb.info/gnd/118529579</gnd>
</akteur>
</akteure>

View File

@@ -1,14 +1,14 @@
<?xml version="1.0"?>
<kategorien xmlns="https://www.kgpz.de"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://www.kgpz.de XSD_Schemata/KGPZ.xsd">
<kategorie index="1">
<name>Wissenschaft</name>
</kategorie>
<kategorie index="2">
<name>Technik</name>
</kategorie>
<kategorie index="3">
<name>Politik</name>
</kategorie>
xsi:schemaLocation="https://www.kgpz.de XSD/KGPZ.xsd">
<kategorie id="1">
<name>Wissenschaft</name>
</kategorie>
<kategorie id="2">
<name>Technik</name>
</kategorie>
<kategorie id="3">
<name>Politik</name>
</kategorie>
</kategorien>

View File

@@ -1,12 +1,12 @@
<?xml version="1.0"?>
<orte xmlns="https://www.kgpz.de"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://www.kgpz.de XSD_Schemata/KGPZ.xsd">
<ort index="1">
xsi:schemaLocation="https://www.kgpz.de XSD/KGPZ.xsd">
<ort id="1">
<name>Hallo</name>
<geonames></geonames>
</ort>
<ort index="2">
<ort id="2">
<name>Hans2</name>
</ort>
</orte>