From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/4886 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: typeseting XML - mixed buffers Date: Wed, 27 Jun 2001 10:28:15 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20010627102815.010c3ec0@server-1> References: <3.0.6.32.20010615100908.009e5cc0@server-1> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: main.gmane.org 1035395522 29630 80.91.224.250 (23 Oct 2002 17:52:02 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:52:02 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: Petr Ferdus In-Reply-To: Xref: main.gmane.org gmane.comp.tex.context:4886 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:4886 At 09:46 AM 6/27/01 +0200, Petr Ferdus wrote: >In case of using "regular" and "XML containing" buffers on the same page I >get "regular" one interpreted like XML (that means no TeX/Contex command >get executed and the whole content of "regular" is printed including >commands and comments stripped of "\" and "%{}" chars) > >example of "regular" buffer >\startbuffer[MyRegular] > \goto{Where to get...}[myfile::whereget]%this goes to footers on pages > %by \setupfootertexts[{\getbuffer[MyRegular]}] >\stopbuffer > >XML containting buffer >\startbuffer[MyXML] >\enableXML >

Here is a text spanning several pages, each of them except the last one >gets footer misinterpreted as XML.

>

More text...

> >\stopbuffer > >Is this somehow my fault or parsing gets mutally messed in the process? rather tricky what you're doing. ow about \startbuffer[blabla]

more bla

\stopbuffer \processXMLbuffer[blabla] or \startXMLcode [name] ..... \stopXMLcode \getXMLcode[name] however, the best way to get thing into headers and footers is to use the marking mechanism, where, in this case you need to play a bit with expansion [not too complicated] Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com -------------------------------------------------------------------------