Attribut für Org & erste Snippets

This commit is contained in:
Simon Martens
2024-06-25 14:06:55 +02:00
parent da891b5945
commit 6528d13fc5
3 changed files with 69 additions and 2 deletions

63
.vscode/xml.code-snippets vendored Normal file
View File

@@ -0,0 +1,63 @@
{
"Akteur": {
"scope": "xml",
"prefix": "akteur",
"body": [
"<akteur id=\"${1:id}\">",
"\t<name>${2:Vollständiger Name}</name>",
"\t<lebensdaten>${3:Geburtsjahr}${4:Sterbejahr}</lebensdaten>",
"\t<gnd>${5:GND-ID}</gnd>${6}",
"</akteur>"
]
},
"Kategorie": {
"scope": "xml",
"prefix": "kategorie",
"body": [
"<kategorie id=\"${1:id}\">",
"\t<name>${2:Vollständiger Name}</name>${3}",
"</kategorie>"
]
},
"Ort": {
"scope": "xml",
"prefix": "ort",
"body": [
"<ort id=\"${1:id}\">",
"\t<name>${2:Vollständiger Name}</name>",
"\t<geonames>${3:geonames-ID}</geonames>${4}",
"</ort>"
]
},
"Werk": {
"scope": "xml",
"prefix": "werk",
"body": [
"<werk id=\"${1:id}\">",
"\t<akteur ref=\"${2:id}\" />",
"\t<zitation>${3:Volltext-Zitat}</zitation>",
"\t<url address=\"${4:id}\" >${5:URL-Text}</url>${6}",
"</werk>"
]
},
"Vermerk": {
"scope": "xml",
"prefix": "vermerk",
"body": [
"<vermerk>${1:Text}</vermerk>",
]
},
"Anmerkung": {
"scope": "xml",
"prefix": "anmerkung",
"body": [
"<anmerkung>${1:Text}</anmerkung>",
]
},
}

View File

@@ -6,8 +6,7 @@
<werk id="1">
mehrere oder auch gar keine Autoren sind erlaubt
<person ref="23" />
<person ref="12">Die Zurordnung eines Werkes zu einem Autor kann charakterisiert werden (Quellen
oä.)</autor>
<person ref="12">Die Zurordnung eines Werkes zu einem Autor kann charakterisiert werden (Quellen oä.)</autor>
Jahr zur Filterung und Sortierung notwendig
Zugelasssen sind die Attribute when, from, to, notBefore, notAfter
<datum when="1783"/>

View File

@@ -44,6 +44,11 @@
<xsd:documentation>Pflicht: Eindeutige ID des Ortes.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="org" type="xsd:boolean" use="optional" default="false" >
<xsd:annotation>
<xsd:documentation>Optional: true, wenn es sich um eine Körperschaft handelt. Default: false</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
</xsd:element>
</xsd:sequence>