From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/73529 Path: news.gmane.org!not-for-mail From: "Meer, H. van der" Newsgroups: gmane.comp.tex.context Subject: strip space in xml Date: Sun, 1 Jan 2012 15:53:37 +0000 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1325433243 17979 80.91.229.12 (1 Jan 2012 15:54:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 1 Jan 2012 15:54:03 +0000 (UTC) To: ConTeXt NTG Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 01 16:53:59 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RhNjR-0005MZ-Kx for gctc-ntg-context-518@m.gmane.org; Sun, 01 Jan 2012 16:53:57 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1944CCB1D9; Sun, 1 Jan 2012 16:53:55 +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 v0+y8vj+WdPN; Sun, 1 Jan 2012 16:53:51 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B451DCB1D0; Sun, 1 Jan 2012 16:53:51 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 55ABACB1D0 for ; Sun, 1 Jan 2012 16:53:50 +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 HspC4T2SnZlN for ; Sun, 1 Jan 2012 16:53:39 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 69087CB1CE for ; Sun, 1 Jan 2012 16:53:39 +0100 (CET) Original-Received: from holleman.uva.nl (holleman.uva.nl [146.50.108.228]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q01FrcKm016705 for ; Sun, 1 Jan 2012 16:53:38 +0100 Original-Received: from bijvoet.uva.nl (146.50.108.241) by holleman.uva.nl (146.50.108.228) with Microsoft SMTP Server (TLS) id 14.1.355.2; Sun, 1 Jan 2012 16:53:38 +0100 Original-Received: from ketelaar.uva.nl ([fe80::cc61:4c73:c438:df97]) by bijvoet.uva.nl ([::1]) with mapi id 14.01.0339.001; Sun, 1 Jan 2012 16:53:38 +0100 Thread-Topic: strip space in xml Thread-Index: AQHMyJ2GZ4VqWIs8REiBp3YYAYDXlA== Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [82.95.102.36] Content-ID: <0AF1CAF6965B7B4B988837A8A96C7BEF@uva.nl> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=146.50.108.228; country=NL; region=07; city=Amsterdam; latitude=52.3500; longitude=4.9167; http://maps.google.com/maps?q=52.3500,4.9167&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0rGgfRCzX - 28aef0df8e28 - 20120101 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:73529 Archived-At: I have the following problem with xml processing. Spurious space is typeset, annoyingly visible when nearly equivalent structures are typeset one under another. Take the following node structure where the node is the one intended to contribute to the typeset material, whereas is not. .. .. Doing in the -node: \xmlstripnolines{#1}{/node}\xmlall{#1}{/node} removes some of the unwanted spaces but not all. Especially the space between and does not completely disappear (seen with \xmlstrippednolines). This also occurs when and are on the same line separated by a number of spaces. The space disappears when are put next to another. However, this destroys the neat typography of the xml. The manual tells me that \xmlstripnolines ..collapses embedded spaces from nodes under node.. That seems correct in that obviously the code leaves one space from the intervening spaces/newlines. But this gains me nothing! Why leaving a single space between and ? For me this defeats the purpose of xmlstripnolines. Can this be remedied? Hans van der Meer ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________