From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/10935 Path: main.gmane.org!not-for-mail From: drymartini@gmx.de (Robbie Pickering) Newsgroups: gmane.comp.tex.context Subject: Re: Extraneous spaces in XML documents Date: Mon, 10 Feb 2003 18:11:24 +0000 Sender: ntg-context-admin@ntg.nl Message-ID: <20030210181124.110B07E%05570575@gmx.de> References: <5.1.0.14.1.20030210101155.027637a8@server-1> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1044900661 19402 80.91.224.249 (10 Feb 2003 18:11:01 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 10 Feb 2003 18:11:01 +0000 (UTC) Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18iIOQ-00052P-00 for ; Mon, 10 Feb 2003 19:10:58 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id B484310B13; Mon, 10 Feb 2003 19:13:04 +0100 (MET) Original-Received: from blueyonder.co.uk (pcow057o.blueyonder.co.uk [195.188.53.94]) by ref.ntg.nl (Postfix) with ESMTP id 3FE3A10AEC for ; Mon, 10 Feb 2003 19:11:31 +0100 (MET) Original-Received: from smtp.blueyonder.co.uk ([62.31.121.166]) by blueyonder.co.uk with Microsoft SMTPSVC(5.5.1877.757.75); Mon, 10 Feb 2003 18:11:30 +0000 Original-To: ntg-context@ntg.nl In-Reply-To: <5.1.0.14.1.20030210101155.027637a8@server-1> X-Mailer: Macintosh SweetMail 2.2r2 Carbon Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:10935 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:10935 Hans Hagen wrote: >At 02:58 AM 2/10/2003 +0000, you wrote: > > >>%this definition for the final version where the >>% remaining comments are ignored >> >>\def\gobble#1{} >> >>\defineXMLargument [comment] \gobble > >you can use \gobbleoneargument here Actually, \gobbleoneargument doesn't make any difference, but the \XMLhideelement solution works perfectly. thanks robbie > >the next solution may help: > >\defineXMLargument [comment] \XMLhideelement > >\long\def\XMLhideelement#1% > {\futurelet\nexttoken\doXMLhideelement} > >\def\doXMLhideelement > {\ifx\nexttoken\blankspace\removeunwantedspaces\fi} >