From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/7416 Path: main.gmane.org!not-for-mail From: Simon Pepping Newsgroups: gmane.comp.tex.context Subject: Re: XML Processing Instructions Date: Thu, 21 Mar 2002 20:36:42 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <20020321203641.F375@scaprea> References: <20020318201136.GA7141@miwie.in-berlin.de> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035397881 19075 80.91.224.250 (23 Oct 2002 18:31:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:31:21 +0000 (UTC) Original-To: NTG ConTeXt In-Reply-To: <20020318201136.GA7141@miwie.in-berlin.de>; from mw@miwie.in-berlin.de on Mon, Mar 18, 2002 at 09:11:36PM +0100 Xref: main.gmane.org gmane.comp.tex.context:7416 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:7416 On Mon, Mar 18, 2002 at 09:11:36PM +0100, Michael Wiedmann wrote: > How do I best handle - non ConTeXt related - XML Processing > Instructions? \defineXMLenvironment[phrase] {Phrase: } {} \defineXMLprocessor[some-pi] \dosomepi \def\dosomepi#1{(Some PI: #1)} \starttext \startXMLdata foo foo foo bla bla bla \stopXMLdata \stoptext > Given: > > foo foo foo bla bla bla > > and a mapping of > > \defineXMLenvironment[phrase] \em > > the rendering stops right after the last "foo". > > I just want ConTeXt to ignore the PI. That is because context expects a form like . The data are inserted as a single token after the defined XML processor, and thus can be picked up by it as an argument. If no processor is defined, the data is ignored. Simon -- Simon Pepping email: spepping@scaprea.hobby.nl