From 6528d13fc5ec1dd9154f016c4b17850e358a4c6c Mon Sep 17 00:00:00 2001 From: Simon Martens Date: Tue, 25 Jun 2024 14:06:55 +0200 Subject: [PATCH] =?UTF-8?q?Attribut=20f=C3=BCr=20Org=20&=20erste=20Snippet?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/xml.code-snippets | 63 +++++++++++++++++++++++++++++++++++++++ XML/werke.xml | 3 +- XSD/orte.xsd | 5 ++++ 3 files changed, 69 insertions(+), 2 deletions(-) create mode 100644 .vscode/xml.code-snippets diff --git a/.vscode/xml.code-snippets b/.vscode/xml.code-snippets new file mode 100644 index 0000000..96f4281 --- /dev/null +++ b/.vscode/xml.code-snippets @@ -0,0 +1,63 @@ +{ + "Akteur": { + "scope": "xml", + "prefix": "akteur", + "body": [ + "", + "\t${2:Vollständiger Name}", + "\t${3:Geburtsjahr}–${4:Sterbejahr}", + "\t${5:GND-ID}${6}", + "" + ] + }, + + "Kategorie": { + "scope": "xml", + "prefix": "kategorie", + "body": [ + "", + "\t${2:Vollständiger Name}${3}", + "" + ] + }, + + "Ort": { + "scope": "xml", + "prefix": "ort", + "body": [ + "", + "\t${2:Vollständiger Name}", + "\t${3:geonames-ID}${4}", + "" + ] + }, + + "Werk": { + "scope": "xml", + "prefix": "werk", + "body": [ + "", + "\t", + "\t${3:Volltext-Zitat}", + "\t${5:URL-Text}${6}", + "" + ] + }, + + "Vermerk": { + "scope": "xml", + "prefix": "vermerk", + "body": [ + "${1:Text}", + ] + }, + + "Anmerkung": { + "scope": "xml", + "prefix": "anmerkung", + "body": [ + "${1:Text}", + ] + }, + +} \ No newline at end of file diff --git a/XML/werke.xml b/XML/werke.xml index 343b16b..1c3ca23 100644 --- a/XML/werke.xml +++ b/XML/werke.xml @@ -6,8 +6,7 @@ mehrere oder auch gar keine Autoren sind erlaubt - Die Zurordnung eines Werkes zu einem Autor kann charakterisiert werden (Quellen - oä.) + Die Zurordnung eines Werkes zu einem Autor kann charakterisiert werden (Quellen oä.) Jahr zur Filterung und Sortierung notwendig Zugelasssen sind die Attribute when, from, to, notBefore, notAfter diff --git a/XSD/orte.xsd b/XSD/orte.xsd index 047e7d9..9d5aa76 100644 --- a/XSD/orte.xsd +++ b/XSD/orte.xsd @@ -44,6 +44,11 @@ Pflicht: Eindeutige ID des Ortes. + + + Optional: true, wenn es sich um eine Körperschaft handelt. Default: false + +