<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Lieber Herr Griesinger, <div class=""><br class=""><div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class=""><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class=""><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class=""><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class=""><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class=""><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class=""><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class=""><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class=""><br class=""></div></span></div></span></div></span></div></span></div></span></div></span></div></span></div></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">Am 09.11.2016 um 16:28 schrieb Christian Griesinger <<a href="mailto:ChristianGriesinger@gmx.de" class="">ChristianGriesinger@gmx.de</a>>:</div><br class="Apple-interchange-newline"><div class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">- Wenn ein bestimmter Vers, z.B. 00100 gefunden wurde, dann soll etwas passieren</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">- Wie muss ich hier die Bedingung für TUSCRIPT syntaktisch korrekt formulieren?</span></div></blockquote></div><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Ich habe mir ihren Beispieltext in eine XML Datei kopiert (die ich dann direkt als UTF-8 Datei einlesen kann) und diese griesinger.xml genannt. </div><div class="">BTW xml:id darf nicht mit einer Ziffer beginnen, darum habe ich aus 001 l001 usw gemacht … </div><div class=""><br class=""></div><div class="">Darauf dann dass folgende Skript losgelassen. </div><div class=""><br class=""></div><div class=""><div class="">$$ MODE TUSCRIPT,{}</div><div class=""><br class=""></div><div class="">quelle="griesinger.xml"</div><div class=""><br class=""></div><div class="">ERROR/STOP OPEN (quelle,READ,-std-)</div><div class=""><br class=""></div><div class="">ACCESS q: READ/STREAM/UTF8 $quelle s,a+txt+e</div><div class="">LOOP/99999</div><div class="">READ/EXIT q</div><div class=""> IF (a.hn."l") THEN</div><div class=""> TRACE *a</div><div class=""> value=GET_ATTRIBUTE (a,"xml:id","none")</div><div class=""> TRACE *value</div><div class=""> IF (value=="l00100") PRINT "hier soll etwas passieren"</div><div class=""> ELSE</div><div class=""> CYCLE</div><div class=""> ENDIF</div><div class="">ENDLOOP</div><div class="">ENDACCESS q </div></div><div class=""><br class=""></div><div class="">Gelesen wird von Tag zu Tag (STREAM) mit der Option UTF8 also direkt die xml-Datei (da das eine Datei im Fremddatenformat ist, gibts hier nur eine Nummerierung „s“, nicht wie bei TUSTEPdateien s.n/u … </div><div class=""><br class=""></div><div class="">Wenn das Anfangstext „l“ ist, soll etwas passieren, ansonsten läuft das Skript weiter (=CYCLE).</div><div class=""><br class=""></div><div class="">Wenn a den Namen (hn = has name) l hat, dann wird der Wert des Attributs xml:id abgefragt, wenn der „l00100“ lautet, passiert etwas … </div><div class=""><br class=""></div><div class="">Herzliche Grüße</div><div class="">Thomas Kollatz</div><div class=""><div style="orphans: 2; widows: 2;" class=""><br class=""></div><div style="orphans: 2; widows: 2;" class="">drs Thomas Kollatz - wissenschaftlicher Mitarbeiter / research assistant<br class="">Salomon Ludwig Steinheim-Institut fuer deutsch-juedische Geschichte<br class="">D-45127 Essen * Edmund-Koerner-Platz 2 * T 0201-82162910 * skype kollatzthomas<br class="">HP <a href="http://www.steinheim-institut.de/wiki/index.php/Mitarbeiter:Thomas_Kollatz" class="">http://www.steinheim-institut.de/wiki/index.php/Mitarbeiter:Thomas_Kollatz</a><br class=""><br class="">=== Projekte / projects ===<br class="">Epigraphische Datenbank <<a href="http://www.steinheim-institut.de/cgi-bin/epidat" class="">http://www.steinheim-institut.de/cgi-bin/epidat</a>><br class="">DARIAH-DE <<a href="http://de.dariah.eu/" class="">http://de.dariah.eu</a>></div><div style="orphans: 2; widows: 2;" class="">TUSTEP-TUSCRIPT module on Rosetta Code <<a href="http://rosettacode.org/wiki/Category:TUSCRIPT" class="">http://rosettacode.org/wiki/Category:TUSCRIPT</a>></div></div></body></html>