From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/57041 Path: news.gmane.org!not-for-mail From: Hans van der Meer Newsgroups: gmane.comp.tex.context Subject: \xmlstrip? Date: Fri, 12 Mar 2010 21:58:56 +0100 Message-ID: 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 1268427553 16200 80.91.229.12 (12 Mar 2010 20:59:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 12 Mar 2010 20:59:13 +0000 (UTC) To: NTG ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Fri Mar 12 21:59:07 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 1NqBwp-0001Um-Te for gctc-ntg-context-518@m.gmane.org; Fri, 12 Mar 2010 21:59:07 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 86291C9D9A; Fri, 12 Mar 2010 21:59:07 +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 J3CR5i6Ug1dp; Fri, 12 Mar 2010 21:59:03 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 785F7C9CC1; Fri, 12 Mar 2010 21:59:03 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 66C80C9CB1 for ; Fri, 12 Mar 2010 21:59:02 +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 KnIby4lDgj3y for ; Fri, 12 Mar 2010 21:59:00 +0100 (CET) Original-Received: from smtp-vbr16.xs4all.nl (smtp-vbr16.xs4all.nl [194.109.24.36]) by balder.ntg.nl (Postfix) with ESMTP id 19E1DC9D22 for ; Fri, 12 Mar 2010 21:58:56 +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-vbr16.xs4all.nl (8.13.8/8.13.8) with ESMTP id o2CKwunJ065323 for ; Fri, 12 Mar 2010 21:58:57 +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:57041 Archived-At: I encounter difficulties in stripping the leading and trailing whitespace from a node. The following does not work for me, typesetting \CAST delivers an empty result: \def\Cast#1{\def\CAST{#1}} \startxmlsetups xml:case:cast \Cast{\xmlstrip{#1}{}} \stopxmlsetups nor do variants like: \Cast{xmlstrip{#1}{*}} \Cast{xmlstrip{#1}{/}} \Cast{xmlstrip{#1}{/cast}} What does work is: \Cast{\xmlflush{#1}} How do I proceed? 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 ___________________________________________________________________________________