From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/57293 Path: news.gmane.org!not-for-mail From: Hans van der Meer Newsgroups: gmane.comp.tex.context Subject: stripping space from xml nodes Date: Sun, 21 Mar 2010 10:24:46 +0100 Message-ID: <301A6C6F-E3D9-4BD2-98FA-E8692AA31687@uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1269163499 2646 80.91.229.12 (21 Mar 2010 09:24:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 21 Mar 2010 09:24:59 +0000 (UTC) To: NTG ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Sun Mar 21 10:24:55 2010 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 1NtHOx-00075k-2e for gctc-ntg-context-518@m.gmane.org; Sun, 21 Mar 2010 10:24:55 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A540AC9CB3; Sun, 21 Mar 2010 10:24:54 +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 YSybFTCUMikH; Sun, 21 Mar 2010 10:24:50 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B88D2C9C82; Sun, 21 Mar 2010 10:24:50 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DBA45C9C82 for ; Sun, 21 Mar 2010 10:24:49 +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 oyLslp6Rsd1a for ; Sun, 21 Mar 2010 10:24:47 +0100 (CET) Original-Received: from smtp-vbr5.xs4all.nl (smtp-vbr5.xs4all.nl [194.109.24.25]) by balder.ntg.nl (Postfix) with ESMTP id 9D6FCC9C3E for ; Sun, 21 Mar 2010 10:24:47 +0100 (CET) Original-Received: from [192.168.178.23] (a82-95-102-36.adsl.xs4all.nl [82.95.102.36]) (authenticated bits=0) by smtp-vbr5.xs4all.nl (8.13.8/8.13.8) with ESMTP id o2L9Olbn039047 for ; Sun, 21 Mar 2010 10:24:47 +0100 (CET) (envelope-from H.vanderMeer@uva.nl) X-Mailer: Apple Mail (2.936) X-Virus-Scanned: by XS4ALL Virus Scanner 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:57293 Archived-At: In order to have (1) text behave the same as (2) text one can use \xmlstripped{node}{lpath}. However, the drawback is that I found there is no further node expansion of inner content. For example \xmlstripped with text text returned "text text". I have already reported earlier that I could not see \xmlstrip{node} {lpath} work as I understood it. That is, it seems to me that in: \startxmlsetups xml:abc \xmlstrip{#1}{} \stopxmlsetups this would strip the spaces from (2) above. It didn't do that, while I also tried of course \xmlstrip in the node enclosing , also to no avail. As a work around one finds: \startxmlsetups xml:abc \ignorespaces % removes spurious space before \xmltext{#1}{} \unskip % removes spurious space after \stopxmlsetups but it is the sort of a kludge I do not feel happy about, apart from the fact that either this has to be put everywhere or another macro layer put around all \xml's suffering. This boils down to two questions: (1) how about \xmlstrip? (2) is the observed behaviour of \xmlstripped (not expanding nodes below) as it should? As Hans Hagen mentioned before he would have I look into it, I kindly ask if he already has found time for this. 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 ___________________________________________________________________________________