From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/90254 Path: news.gmane.org!not-for-mail From: =?iso-8859-2?B?UHJvY2jhemthIEx1a+G5IEluZy4gLSBQb250ZXggcy4gci4gby4=?= Newsgroups: gmane.comp.tex.context Subject: XML - some troubles Date: Tue, 17 Feb 2015 10:52:26 +0100 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=----------DL9EBYszpSEACdJ7GL0x9I X-Trace: ger.gmane.org 1424166824 10921 80.91.229.3 (17 Feb 2015 09:53:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Feb 2015 09:53:44 +0000 (UTC) To: ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 17 10:53:32 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YNeqP-0008D5-W8 for gctc-ntg-context-518@m.gmane.org; Tue, 17 Feb 2015 10:53:30 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 414A91022C for ; Tue, 17 Feb 2015 10:53:29 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id t54hNPzKmc7K for ; Tue, 17 Feb 2015 10:53:28 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 4642910235 for ; Tue, 17 Feb 2015 10:53:01 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CEDAC101FD for ; Tue, 17 Feb 2015 10:52:56 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Ozhr8x7wmg0P for ; Tue, 17 Feb 2015 10:52:55 +0100 (CET) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 6BC99101FC for ; Tue, 17 Feb 2015 10:52:55 +0100 (CET) Original-Received: from mail.pontex.cz (mail.pontex.cz [89.233.168.98]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t1H9qs1S009216 for ; Tue, 17 Feb 2015 10:52:54 +0100 X-Footer: cG9udGV4LmN6 Original-Received: from localhost ([127.0.0.1]) by mail.pontex.cz (Kerio Connect 8.0.2) for ntg-context@ntg.nl; Tue, 17 Feb 2015 10:54:48 +0100 User-Agent: Opera Mail/12.15 (Win32) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=89.233.168.98; country=CZ; latitude=50.0833; longitude=14.4167; http://maps.google.com/maps?q=50.0833,14.4167&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07NRlQS1O - 64f3e8141da9 - 20150217 Received-SPF: none (filter1-utr.mf.surf.net: domain of LPr@pontex.cz does not designate permitted sender hosts) receiver=filter1-utr.mf.surf.net; client-ip=89.233.168.98; envelope-from=; helo=mail.pontex.cz; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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.org gmane.comp.tex.context:90254 Archived-At: ------------DL9EBYszpSEACdJ7GL0x9I Content-Type: text/plain; charset=iso-8859-2; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable Hello, suppose having: ---- t.xml AA AB ---- and the Ctx source: ---- t.mkiv \startxmlsetups xml:T \xmlsetsetup{\xmldocument}{*}{+} % \xmlsetsetup{\xmldocument}{*}{-} % Empties output?! \xmlsetsetup{\xmldocument}{a/ab}{xml:*} \stopxmlsetups \startxmlsetups xml:ab \section{New section \xmlatt{#1/../aa}{number}} \xmlflush{#1} \stopxmlsetups \xmlregistersetup{xml:T} \starttext Hello \xmlprocessfile{id}{t.xml}{} \stoptext ---- Some questions: 1) Why the line "\xmlsetsetup{\xmldocument}{*}{-}" (try to uncomment!) caus= es the whole output is empty, even if I specify another operation for "a= /ab" elements later? My intention is to have "{*}{-}" (don't flush anything by default), excl= uding elements specified later, e.g. "a/ab" (with another operation spec= ified); how to achieve this? 2) How to get "aa.number" from within "ab" element? I believed "\xmlatt{#1/../aa}{number}" within "a/ab" will do that, but..= .? How to do that? Thank you in advance; I'm not very familiar with Ctx XML processing (so far)... Best regards, Lukas -- = Ing. Luk=E1=B9 Proch=E1zka | mailto:LPr@pontex.cz Pontex s. r. o. | mailto:pontex@pontex.cz | http://www.pontex.cz Bezov=E1 1658 147 14 Praha 4 Tel: +420 241 096 751 Fax: +420 244 461 038 ------------DL9EBYszpSEACdJ7GL0x9I Content-Disposition: attachment; filename=t.mkiv Content-Type: application/octet-stream; name="t.mkiv" Content-Transfer-Encoding: Base64 XHN0YXJ0eG1sc2V0dXBzIHhtbDpUDQogIFx4bWxzZXRzZXR1cHtceG1sZG9jdW1l bnR9eyp9eyt9DQogIFx4bWxzZXRzZXR1cHtceG1sZG9jdW1lbnR9eyp9ey19ICUg RW1wdGllcyBvdXRwdXQ/IQ0KICBceG1sc2V0c2V0dXB7XHhtbGRvY3VtZW50fXth L2FifXt4bWw6Kn0NClxzdG9weG1sc2V0dXBzDQoNClxzdGFydHhtbHNldHVwcyB4 bWw6YWINCiAgXHNlY3Rpb257TmV3IHNlY3Rpb24gXHhtbGF0dHsjMS8uLi9hYX17 bnVtYmVyfX0NCiAgXHhtbGZsdXNoeyMxfQ0KXHN0b3B4bWxzZXR1cHMNCg0KXHht bHJlZ2lzdGVyc2V0dXB7eG1sOlR9DQoNClxzdGFydHRleHQNCiAgSGVsbG8NCg0K ICBceG1scHJvY2Vzc2ZpbGV7aWR9e3QueG1sfXt9DQpcc3RvcHRleHQNCg== ------------DL9EBYszpSEACdJ7GL0x9I Content-Disposition: attachment; filename=t.xml Content-Type: text/xml; name="t.xml" Content-Transfer-Encoding: 7bit AA AB ------------DL9EBYszpSEACdJ7GL0x9I Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= ------------DL9EBYszpSEACdJ7GL0x9I--