Commit 3545c2ed authored by MRodz's avatar MRodz Committed by mrodzis
Browse files

Change attribute in order to be compliant with TEI simplePrint

parent ec4e666e
......@@ -463,8 +463,15 @@ declare function fontane-simple:transform($nodes as node()*) as node()* {
case element(tei:date) return
element {QName("http://www.tei-c.org/ns/1.0", $node/name())}{
attribute when {$node/@when-iso},
$node/(@* except @when-iso),
(if($node/@when-iso) then
attribute when {$node/@when-iso}
else
()),
(if($node/@to-iso) then
attribute to {$node/@to-iso}
else
()),
$node/((@* except @when-iso) except @to-iso),
fontane-simple:transform($node/node())
}
......
......@@ -670,7 +670,7 @@
.
<date when="" type="asynchronous" to-iso="1501" precision="low">Wahrscheinlich bis 1501</date>
<date to="1501" type="asynchronous" precision="low">Wahrscheinlich bis 1501</date>
.
</item>
<item>
......@@ -681,12 +681,12 @@
</hi>
</rs>
,
<date when="" xml:id="C07_1r_m" next="#C07_1r_n" type="asynchronous" from-iso="1501" to-iso="1505" precision="low">wahrscheinlich</date>
<date to="1505" xml:id="C07_1r_m" next="#C07_1r_n" type="asynchronous" from-iso="1501" precision="low">wahrscheinlich</date>
<date when="" xml:id="C07_1r_n" prev="#C07_1r_m" type="asynchronous" from-iso="1501" to-iso="1505" precision="low">von 1501 bis 1505</date>
<date to="1505" xml:id="C07_1r_n" prev="#C07_1r_m" type="asynchronous" from-iso="1501" precision="low">von 1501 bis 1505</date>
.
</item>
<item>
......@@ -712,12 +712,12 @@
ist in
<rs type="indirect" ref="plc:Kloster_EF">diesem Kloster</rs>
<date when="" xml:id="C07_1r_o" next="#C07_1r_p" type="asynchronous" to-iso="1508" precision="low">ich</date>
<date to="1508" xml:id="C07_1r_o" next="#C07_1r_p" type="asynchronous" precision="low">ich</date>
<date when="" xml:id="C07_1r_p" prev="#C07_1r_o" type="asynchronous" to-iso="1508" precision="low">glaube bis 1508</date>
<date to="1508" xml:id="C07_1r_p" prev="#C07_1r_o" type="asynchronous" precision="low">glaube bis 1508</date>
.
</item>
......@@ -886,12 +886,12 @@
</item>
<item xml:id="C07_2r_5" uly="7.2" lry="11.0">
9.
<date when="" xml:id="C07_2r_o" next="#C07_2r_p" type="asynchronous" from-iso="1521-05-04" to-iso="1522-05-06">Vom 4. Mai 1521 bis</date>
<date to="1522-05-06" xml:id="C07_2r_o" next="#C07_2r_p" type="asynchronous" from-iso="1521-05-04">Vom 4. Mai 1521 bis</date>
<date when="" xml:id="C07_2r_p" prev="#C07_2r_o" type="asynchronous" from-iso="1521-05-04" to-iso="1522-05-06">6. März 1522</date>
<date to="1522-05-06" xml:id="C07_2r_p" prev="#C07_2r_o" type="asynchronous" from-iso="1521-05-04">6. März 1522</date>
auf
der
<rs type="direct" ref="plc:Wartburg">
......@@ -919,12 +919,12 @@
</item>
<item uly="12.7" lry="16.4">
11.
<date when="" xml:id="C07_2r_g" next="#C07_2r_h" type="asynchronous" from-iso="1530-04-16" to-iso="1530-10-06">1530 (vom 16. April</date>
<date to="1530-10-06" xml:id="C07_2r_g" next="#C07_2r_h" type="asynchronous" from-iso="1530-04-16">1530 (vom 16. April</date>
<date when="" xml:id="C07_2r_h" prev="#C07_2r_g" type="asynchronous" from-iso="1530-04-16" to-iso="1530-10-06">bis 6. Oktober)</date>
<date to="1530-10-06" xml:id="C07_2r_h" prev="#C07_2r_g" type="asynchronous" from-iso="1530-04-16">bis 6. Oktober)</date>
auf der
......@@ -995,12 +995,12 @@
</hi>
</rs>
<date when="" type="asynchronous" from-iso="1530" xml:id="C07_3r_g" next="C07_3r_h">von 1530</date>
<date type="asynchronous" from-iso="1530" xml:id="C07_3r_g" next="C07_3r_h">von 1530</date>
<date when="" type="asynchronous" from-iso="1530" xml:id="C07_3r_h" prev="C07_3r_g">an</date>
<date type="asynchronous" from-iso="1530" xml:id="C07_3r_h" prev="C07_3r_g">an</date>
. Der wichtigste ist
......@@ -1123,7 +1123,7 @@
<tei:head type="default" subtype="section">I. <hi>
<date when="" type="asynchronous" to-iso="0528">bis 528</date>
<date to="0528" type="asynchronous">bis 528</date>
.
</hi>
</tei:head>
......@@ -1387,7 +1387,7 @@
<lb type="edited_text"/>
<date when="" type="asynchronous" from-iso="0528" to-iso="1125">von 528 – 1125</date>
<date to="1125" type="asynchronous" from-iso="0528">von 528 – 1125</date>
</tei:head>
......@@ -1423,7 +1423,7 @@
<lb type="edited_text"/>
<date when="" type="asynchronous" from-iso="1130" to-iso="1482">von 1130 – 1482</date>
<date to="1482" type="asynchronous" from-iso="1130">von 1130 – 1482</date>
</tei:head>
......@@ -1506,12 +1506,12 @@
Banner. Man darf
also sagen, daß
<date when="" xml:id="C07_9r_m" next="#C07_9r_n" type="asynchronous" from-iso="1125">von</date>
<date xml:id="C07_9r_m" next="#C07_9r_n" type="asynchronous" from-iso="1125">von</date>
<date when="" xml:id="C07_9r_n" prev="#C07_9r_m" type="asynchronous" from-iso="1125">1125 an</date>
<date xml:id="C07_9r_n" prev="#C07_9r_m" type="asynchronous" from-iso="1125">1125 an</date>
<rs type="direct" ref="plc:Thueringen">Thüringen</rs>
......@@ -1542,7 +1542,7 @@
zu sein.
Dies dauerte
<date when="" type="asynchronous" from-iso="1125" to-iso="1425">300 Jahr</date>
<date to="1425" type="asynchronous" from-iso="1125">300 Jahr</date>
.
......@@ -1575,7 +1575,7 @@
<date when="" type="asynchronous" from-iso="1125" to-iso="1425">Diese 300 Jahre</date>
<date to="1425" type="asynchronous" from-iso="1125">Diese 300 Jahre</date>
der
<hi>
......@@ -1802,12 +1802,12 @@
<rs xml:id="C07_12r_n" prev="#C07_12r_m" type="indirect" ref="psn:Balthasar psn:Wilhelm_I_Graf">2 Brüdern</rs>
zusammen
<date when="" xml:id="C07_12_c" next="#C07_12r_d" type="asynchronous" to-iso="1381">bis</date>
<date to="1381" xml:id="C07_12_c" next="#C07_12r_d" type="asynchronous">bis</date>
<date when="" xml:id="C07_12r_d" prev="#C07_12r_c" type="asynchronous" to-iso="1381">1381</date>
<date to="1381" xml:id="C07_12r_d" prev="#C07_12r_c" type="asynchronous">1381</date>
. Dann
<rs type="direct" ref="psn:Balthasar">
<hi>
......@@ -1818,7 +1818,7 @@
<date when="" type="asynchronous" from-iso="1382" to-iso="1406">von 1382 – 1406</date>
<date to="1406" type="asynchronous" from-iso="1382">von 1382 – 1406</date>
;
dann
<rs xml:id="C07_12r_e" next="#C07_12r_f" type="direct" ref="psn:Friedrich_IV_Graf">
......@@ -1834,12 +1834,12 @@
</hi>
</rs>
<date when="" xml:id="C07_12r_s" next="#C07_12r_t" type="asynchronous" from-iso="1406" to-iso="1440">von 1406</date>
<date to="1440" xml:id="C07_12r_s" next="#C07_12r_t" type="asynchronous" from-iso="1406">von 1406</date>
<date when="" xml:id="C07_12r_t" prev="#C07_12r_s" type="asynchronous" from-iso="1406" to-iso="1440">bis 1440</date>
<date to="1440" xml:id="C07_12r_t" prev="#C07_12r_s" type="asynchronous" from-iso="1406">bis 1440</date>
. Damit
<handShift script="standard"/>
......@@ -1872,24 +1872,24 @@
die
<rs type="indirect" ref="psn:Ludwige">1. Gruppe</rs>
<date when="" xml:id="C07_13r_a" next="#C07_13r_b" type="asynchronous" from-iso="1130" to-iso="1247">von 1130</date>
<date to="1247" xml:id="C07_13r_a" next="#C07_13r_b" type="asynchronous" from-iso="1130">von 1130</date>
<date when="" xml:id="C07_13r_b" prev="#C07_13r_a" type="asynchronous" from-iso="1130" to-iso="1247">bis 1247</date>
<date to="1247" xml:id="C07_13r_b" prev="#C07_13r_a" type="asynchronous" from-iso="1130">bis 1247</date>
und
</item>
<item>
die
<rs type="indirect" ref="psn:Friedriche">2. Gruppe</rs>
<date when="" xml:id="C07_13r_c" next="#C07_13r_d" type="asynchronous" from-iso="1247" to-iso="1440">von 1247</date>
<date to="1440" xml:id="C07_13r_c" next="#C07_13r_d" type="asynchronous" from-iso="1247">von 1247</date>
<date when="" xml:id="C07_13r_d" prev="#C07_13r_c" type="asynchronous" from-iso="1247" to-iso="1440">bis 1440</date>
<date to="1440" xml:id="C07_13r_d" prev="#C07_13r_c" type="asynchronous" from-iso="1247">bis 1440</date>
.
</item>
</list>
......@@ -1959,12 +1959,12 @@
<rs xml:id="C07_14r_b" prev="#C07_14r_a" type="direct" ref="psn:saechsische_Fuersten">Fürsten</rs>
<date when="" xml:id="C07_14r_c" next="#C07_14r_d" type="asynchronous" from-iso="1440" to-iso="1547">von 1440 –</date>
<date to="1547" xml:id="C07_14r_c" next="#C07_14r_d" type="asynchronous" from-iso="1440">von 1440 –</date>
<date when="" xml:id="C07_14r_d" prev="#C07_14r_c" type="asynchronous" from-iso="1440" to-iso="1547">1547</date>
<date to="1547" xml:id="C07_14r_d" prev="#C07_14r_c" type="asynchronous" from-iso="1440">1547</date>
.
</tei:head>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment