From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/106492 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Axel Kielhorn Newsgroups: gmane.comp.tex.context Subject: Need help processing XML in luacode Date: Tue, 10 Mar 2020 20:13:37 +0100 Message-ID: <916140D5-73D7-4874-8078-86337DF85927@axelkielhorn.de> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Content-Type: multipart/mixed; boundary="Apple-Mail=_FEC23FE4-5B04-43AD-815D-06A0B293B01C" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="116347"; mail-complaints-to="usenet@ciao.gmane.io" To: "ntg-context@ntg.nl" Original-X-From: ntg-context-bounces@ntg.nl Tue Mar 10 20:20:19 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jBkQM-000U6R-Ju for gctc-ntg-context-518@m.gmane-mx.org; Tue, 10 Mar 2020 20:20:18 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 84F081826CF; Tue, 10 Mar 2020 20:19:43 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uJvN3ByL0Uz5; Tue, 10 Mar 2020 20:19:42 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9A9B118276C; Tue, 10 Mar 2020 20:19:42 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 43B511826B5 for ; Tue, 10 Mar 2020 20:19:41 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xf_vij6Y1JVg for ; Tue, 10 Mar 2020 20:19:40 +0100 (CET) Received-SPF: Pass (helo) identity=helo; client-ip=81.169.146.162; helo=mo4-p00-ob.smtp.rzone.de; envelope-from=tex@axelkielhorn.de; receiver= X-Greylist: delayed 176 seconds by postgrey-1.36 at zapf.ntg.nl; Tue, 10 Mar 2020 20:19:39 CET Original-Received: from mo4-p00-ob.smtp.rzone.de (mo4-p00-ob.smtp.rzone.de [81.169.146.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id E308E1807EA for ; Tue, 10 Mar 2020 20:19:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1583867979; s=strato-dkim-0002; d=axelkielhorn.de; h=To:Date:Message-Id:Subject:From:X-RZG-CLASS-ID:X-RZG-AUTH:From: Subject:Sender; bh=UEC5AA0e2DQ6tNZyAqV5r6t/nxfeum/i+d9DLinSZnY=; b=C4cJHiI6WZxvdYJCBa1EpY/KlK2TFJBJXWQk+JvMc1NhBt4b2BBPTLl6FbM0g3GIeh TcxKtq9MH9utsBd0UXhNlh+Z6pK1I593dk4hbUb8+znI0KJYtIfhuUmB3q5n+uLTle8L 9wAQEDbnTkDwhPXZIgFkhPNRiaI2hCN/XhdeZ/NrloNa0jzd2Y/B+Harc6nqLvuQk5Ip TXswjjtVzPHge3fEvmq4a4xpqhuCdDX6D9HVkIdxZLT+8p2HbqHQDRsdrHHUSLWwDo6y YCxUs/Bci9kqyErGaAmBzWWn2dPqjFJ4vmVv6nNrHkk1IrydKNQVNDR6wJV8u1Mev7oV pyYQ== X-RZG-AUTH: ":OGkcVUGwfvMLvkVusQ1g9gJQt7WL23nhrqI2F4F9RuxzbAQePvTSV0cr4JoWPbaGO12LoOt8Yhh9qeWqFTcChqiM83OYjX1CtD7sfMEzcA==" X-RZG-CLASS-ID: mo00 Original-Received: from [IPv6:2003:cc:ff0c:4500:8911:65f3:e387:2e09] by smtp.strato.de (RZmta 46.2.0 AUTH) with ESMTPSA id Y0190dw2AJDcdf3 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate) for ; Tue, 10 Mar 2020 20:13:38 +0100 (CET) X-Mailer: Apple Mail (2.3445.9.1) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:106492 Archived-At: --Apple-Mail=_FEC23FE4-5B04-43AD-815D-06A0B293B01C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi, after one year I=E2=80=99m back at a project processing XML with = ConTeXt. Here is what I want to do: I have an XML file that I want to format with ConTeXt. I got this working last year. Now I want to take some information from a second file. My idea is to read the second file, store the data into a table and=20 write auxiliary functions to access the data and insert them into the = TeX output. When I process the included files with context --environment=3Dprozess-style-ecm.tex prozess.xml I get [ctxlua]:19: table index is nil 12 =20 13 doc =3D xml.load(doclistfile, settings) 14 =20 15 for v in xml.collected(doc,"/doclist/psdoc/") do 16 -- print ((xml.filter(v,"//docnr/stripped()"))) 17 docnr =3D (cropstring(xml.filter(v,"/docnr/text()"))) 18 docname =3D (cropstring(xml.filter(v,"/docname/text()"))) 19 -- es kann mehrere DOCAN geben! 20 docan =3D (cropstring(xml.filter(v,"/docan/text()"))) 21 docverantwortlich =3D = (cropstring(xml.filter(v,"/docverantwortlich/text()"))) 22 >> docstruktur[docnr]=3D{} The xml.collected works, but the xml.filter returns nil. What did I miss? mtx-context | ConTeXt Process Management 1.03 mtx-context | mtx-context | main context file: /Volumes/Macintosh = HD/usr/local/texlive/context-109/tex/texmf-context/tex/context/base/mkiv/c= ontext.mkiv mtx-context | current version: 2020.01.30 14:13 mtx-context | main context file: /Volumes/Macintosh = HD/usr/local/texlive/context-109/tex/texmf-context/tex/context/base/mkiv/c= ontext.mkxl mtx-context | current version: 2020.01.30 14:13 The same code works when I use it in a Lua file that I call with mtxrun --script panalyse.lua Greetings Axel --Apple-Mail=_FEC23FE4-5B04-43AD-815D-06A0B293B01C Content-Disposition: attachment; filename=doclist.xml Content-Type: application/xml; x-unix-mode=0644; name="doclist.xml" Content-Transfer-Encoding: 7bit PD 3710 DTD.html LA PD 3711 Prozessbeschreibung.html LA PD 4711 Prozess.xml Rechtsabteilung PL PD 4712 Prozess.pdf Rechtsabteilung Web-Server PD 4713 Prozess-g.pdf Rechtsabteilung Web-Server PD 4722 Dokumentenfluss.pdf EDV Web-Server --Apple-Mail=_FEC23FE4-5B04-43AD-815D-06A0B293B01C Content-Disposition: attachment; filename=prozess.xml Content-Type: application/xml; x-unix-mode=0644; name="prozess.xml" Content-Transfer-Encoding: quoted-printable =0A=0A=0A=0A= =20=20=20=20=20=20=20=20=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=201.0=0A=20=20=20=20=20=20=20=20=0A=20=20=20=20=20=20=20=20= =0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= Prozessbeschreibung=0A=20=20=20=20=20=20=20=20=0A=20=20=20=20=20=20= =20=20=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= Rechtsabteilung=0A=20=20=20=20=20=20=20=20=0A=20=20=20=20= =20=20=20=20=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= 1.0=0A=20=20=20=20=20=20=20=20=0A=20=20=20=20=20=20=20=20= =0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20010=0A= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=0A=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20Prozess=20beschreiben=0A=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=0A=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=0A=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20PD=20= 3710=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20DTD.html=0A=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20LA=0A=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=0A=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= PD=203711=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= Prozessbeschreibung.html=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=0A=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=0A=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20LA=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20PD=204711=0A=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20Prozess.xml=0A=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=0A=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20Rechtsabteilung=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=0A=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20PL=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20DTD=20erstellen=0A=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20EDV=0A=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=0A=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= DTD=20validiert=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20XML=20erstellen=0A=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20XML=20erstellen,=20mit=20xmllint=20gegen=20die=20DTD=20= validieren.=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=0A=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20MA=20= Rechtsabteilung=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=0A=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20XML=20validiert=0A=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20=20=20=20=20= =20=20=20=0A=20=20=20=20=20=20=20=20=0A=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=0A=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20020=0A=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20Prozess=20visualisieren=0A=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20PD=204712=0A=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20Prozess.pdf=0A=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=0A=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20Rechtsabteilung=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=0A=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20Web-Server=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20PD=204713=0A=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20Prozess-g.pdf=0A=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=0A=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20Rechtsabteilung=0A=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=0A=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20Web-Server=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=0A=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20Tabellarische=20Version=20= erstellen=20und=20ver=C3=B6ffentlichen=0A=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20Tabellarische=20Version=20mit=20ConTeXt=20erstellen=20und=20auf=20= dem=20Web-Server=20ver=C3=B6ffentlichen.=0A=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20EDV=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=0A=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20Tabellarische=20= Version=20auf=20dem=20Web-Server.=0A=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=0A=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20Graphische=20Version=20= erstellen=20und=20ver=C3=B6ffentlichen.=0A=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20Das=20Werkzeug=20existiert=20noch=20nicht.=0A=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20EDV=0A=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=0A=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= Graphische=20Version=20auf=20Webserver=0A=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=0A=20=20=20=20=20=20=20=20= =0A=20=20=20=20=20=20=20=20=0A=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20030=0A=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20Dokumentenfluss=20erstellen=0A=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20PD=204722=0A=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20Dokumentenfluss.pdf=0A=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20EDV=0A=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20Web-Server=0A=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=0A=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=0A=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20Alle=20= XML-Dateien=20mit=20system-in.py=20bearbeiten.=0A=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20Das=20Werkzeug=20existiert=20noch=20nicht.=0A=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20EDV=0A=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=0A=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=0A=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= Jedes=20Dokument=20hat=20genau=20einen=20Verantwortlichen=20und=20= mindestens=20einen=20Empf=C3=A4nger.=0A=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=0A=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=0A=20=20=20=20=20=20=20=20=0A= =0A= --Apple-Mail=_FEC23FE4-5B04-43AD-815D-06A0B293B01C Content-Disposition: attachment; filename=prozess-style-ecm.tex Content-Type: application/octet-stream; x-unix-mode=0644; name="prozess-style-ecm.tex" Content-Transfer-Encoding: 7bit % !TEX TS-program = ConTeXt (LuaTeX 1.0.9) % Copyright 2019 Axel Kielhorn % Lizenz: CC-BY-SA 4.0 Unported http://creativecommons.org/licenses/by-sa/4.0/deed.de % Usage: % context --environment=prozess-style-ecm.tex prozess.xml \startluacode settings = {} docstruktur = {} doclistfile = "doclist.xml" cropstring = function(string) return utilities.strings.striplines(string, "prune and collapse") end doc = xml.load(doclistfile, settings) for v in xml.collected(doc,"/doclist/psdoc/") do print (v) print (xml.filter(v,"/docnr/text()")) docnr = (xml.filter(v,"/docnr/text()")) print (docnr) docname = (cropstring(xml.filter(v,"/docname/text()"))) -- es kann mehrere DOCAN geben! docan = (cropstring(xml.filter(v,"/docan/text()"))) docverantwortlich = (cropstring(xml.filter(v,"/docverantwortlich/text()"))) docstruktur[docnr]={} -- docstruktur[docnr]["docname"] = docname -- docstruktur[docnr]["docan"] = docan -- docstruktur[docnr]["docverantwortlich"] = docverantwortlich end \stopluacode \language[de] \setbreakpoints[compound] \setuphyphenation[method=expanded] \setuppapersize [A4,landscape][A4,landscape] \setuplayout [width=middle, backspace=2in, cutspace=1in, leftmargin=1.5in, height=middle, topspace=0.75in, bottomspace=0.75in] \setuppagenumbering[location={footer,right}] \setupheader[text][start] \setupfooter[text][start] %\setupheadertexts[][\date] \setupheadertexts[title][\date] \setuphead[title] [placehead=empty, before=, after=, page=,] \startxmlsetups xml:prozessb \xmlsetsetup{#1}{*}{-} \xmlsetsetup{#1}{prozess|pschritt|psindoc|docan|psoutdoc|aschritt|eschritt}{xml:*} \stopxmlsetups \xmlregistersetup{xml:prozessb} \startxmlsetups xml:prozess \title{\xmltext{#1}{/pnr} \xmltext{#1}{/pname}} % \setupheadertexts[\bf\xmltext{#1}{/pnr} \xmltext{#1}{/pname}][\date] {\bTABLE \setupTABLE[frame=off] \setupTABLE[offset=1mm] \setupTABLE[c][1][align=right, width=14cm] \setupTABLE[c][2][align=left, width=6cm] \setupTABLE[c][3][align=right, width=4cm] \bTR \bTD \bfb\xmltext{#1}{/pnr} \eTD \bTD Version: \eTD \bTD \bf\xmltext{#1}{/pversion}\eTD \eTR \bTR \bTD \bfb\xmltext{#1}{/pname} \eTD \bTD Verantwortlich: \eTD \bTD \bf\xmltext{#1}{/pverantwortlich}\eTD\eTR \eTABLE} \blank \xmlflush{#1} \stopxmlsetups --Apple-Mail=_FEC23FE4-5B04-43AD-815D-06A0B293B01C Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --Apple-Mail=_FEC23FE4-5B04-43AD-815D-06A0B293B01C--