<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Lieber Herr Neumann, <div>ich habe es mit den XML-Dateien meines Mainzer workshops  (der demnächst auch im Wiki sein wird, spätestens in meinem Herbsturlaub) einmal ausprobiert, herzliche Grüße</div><div>THOMAS KOLLATZ</div><div><br></div><div><div><div>$$! ziel=xml2tustep.tf</div><div>$$ MODE TUSCRIPT,{}</div><div>- Dateinamen aus Standardprojekt und -träger</div><div>files=FILE_NAMES (-std-,-std-)</div><div><br></div><div>- xml-Dateien herausfiltern</div><div>xmlfiles=FILTER (files,":*.xml:",-)</div><div>sz_xml=SIZE(xmlfiles)</div><div>IF (sz_xml==0) STOP</div><div><br></div><div>- Einlesen der XML-Dateien und in TUSTEP Zieldatei schreiben</div><div> ERROR/STOP CREATE (ziel,seq-o,-std-)</div><div> ERROR/STOP ERASE  (ziel)</div><div><br></div><div>COMPILE</div><div> ACCESS z: WRITE/RECORDS     $ziel s.z/u, text</div><div>  LOOP file=xmlfiles</div><div>   ERROR/STOP OPEN (file,READ,-std-)</div><div>    ACCESS q: READ/RECORDS/UTF8 $file s,text</div><div>     LOOP/9999999</div><div>      READ/NEXT/EXIT q</div><div>      WRITE/ADJUST z</div><div>     ENDLOOP</div><div>    ENDACCESS q</div><div>   ERROR/STOP CLOSE (file)</div><div>  ENDLOOP</div><div> ENDACCESS/PRINT z</div><div>ENDCOMPILE</div></div></div><div><br><div><div>Am 16.10.2013 um 07:52 schrieb Thomas Neumann <<a href="mailto:tho.neumann@gmx.de">tho.neumann@gmx.de</a>>:</div><br class="Apple-interchange-newline"><blockquote type="cite">Diskussionsforum Tustep-Liste<br>Weitere Informationen: <a href="http://www.itug.de">www.itug.de</a><br>------------------------------------------------------------<br><br><div><div style="font-family: Verdana;font-size: 12.0px;"><div>Hallo Liste,</div>

<div>ein kleines Problem.</div>

<div>Ausgangslage: Mehrere hundert xml-Dateien befinden sich in einem Unterverzeichnis eines Projektes.</div>

<div>1. Alle XML-Dateien auflisten und in eine TUSTEP-Datei schreiben (im Projektverzeichnis)</div>

<div>2. Alle Dateien alphabetisch nacheinander in einen TUSTEP-Datei kopieren.</div>

<div>TUSCRIPT wäre die richtige Wahl, oder?</div>

<div>In diesem Kontext noch eine Frage zu:
<pre class="text highlighted_source">FILE_NAMES (+,-std-)</pre>

<div>Wie ist das Format für eine direkte Pfadangebe auf einem Windows-System für Parameter 2 (hier "-std-")?</div>

<div>Ein direkter Pfad funktioniert nicht, oder?</div>

<div> </div>

<div>Dank in die Runde.</div>

<div>Lg Thomas Neumann</div>

<div> </div>
</div>

<div class="signature">-------------------------------------<br>
Dr. Thomas Neumann<br>
Hertfelderstrasse 12<br>
73733 Esslingen<br>
-------------------------------------<br>
mail <a href="mailto:tho.neumann@gmx.de">tho.neumann@gmx.de</a><br>
fax +4932121431182<br>
-------------------------------------<br>
<a href="http://www.thomas-neumann.com">www.thomas-neumann.com</a><br>
<a href="http://www.caroline-fouque.de">www.caroline-fouque.de</a><br>
<a href="http://www.hoererlebnis.de">www.hoererlebnis.de</a><br>
-------------------------------------</div></div></div>
<br>------------------------------------------------------------<br><a href="mailto:Tustep-Liste@itug.de">Tustep-Liste@itug.de</a><br>https://lists.uni-wuerzburg.de/mailman/listinfo/tustep-liste</blockquote></div><br></div><br><br><div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; 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; "><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; 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; "><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; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><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; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><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; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><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; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><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; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><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; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><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; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>drs Thomas Kollatz  - wissenschaftlicher Mitarbeiter / research assistant<br>Salomon Ludwig Steinheim-Institut fuer deutsch-juedische Geschichte<br>D-45127 Essen * Edmund-Koerner-Platz 2 * T  0201-82162910  * skype kollatzthomas<br>HP <a href="http://www.steinheim-institut.de/wiki/index.php/Mitarbeiter:Thomas_Kollatz">http://www.steinheim-institut.de/wiki/index.php/Mitarbeiter:Thomas_Kollatz</a><br><br>===  Projekte / projects ===<br>Epigraphische Datenbank <<a href="http://www.steinheim-institut.de/cgi-bin/epidat">http://www.steinheim-institut.de/cgi-bin/epidat</a>><br>RiR - Relationen im Raum <<a href="https://dev2.dariah.eu/wiki/display/RIRPUB/RiR">https://dev2.dariah.eu/wiki/display/RIRPUB/RiR</a>><br>DARIAH-DE <<a href="http://de.dariah.eu/">http://de.dariah.eu</a>></div><div>=== btw / sonst noch ===<br>TUSTEP-TUSCRIPT module on Rosetta Code <<a href="http://rosettacode.org/wiki/Category:TUSCRIPT">http://rosettacode.org/wiki/Category:TUSCRIPT</a>></div></div></span></div></span></div></span></div></span></div></span></div></span></div></span></div></div>
</div>
<br></body></html>