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:sequence>
<xsd:element name="name" type="NonEmptyString" minOccurs="1" maxOccurs="1" nillable="false" /> <xsd:element name="name" type="NonEmptyString" minOccurs="1" maxOccurs="1" nillable="false" />
</xsd:sequence> </xsd:sequence>
<xsd:attribute name="index" type="xsd:integer" use="required" /> <xsd:attribute name="id" type="xsd:integer" use="required" />
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
</xsd:sequence> </xsd:sequence>
</xsd:complexType> </xsd:complexType>
<xsd:unique name="uniqueIndexKategorien"> <xsd:unique name="uniqueIndexKategorien">
<xsd:selector xpath="kgpz:kategorie" /> <xsd:selector xpath="kgpz:kategorie" />
<xsd:field xpath="@index" /> <xsd:field xpath="@id" />
</xsd:unique> </xsd:unique>
</xsd:element> </xsd:element>

View File

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

View File

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

View File

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