From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/12851 Path: main.gmane.org!not-for-mail From: =?iso-8859-2?Q?Martin_Kola=F8=EDk?= Newsgroups: gmane.comp.tex.context Subject: some XML stuff (and bugs?) Date: Mon, 11 Aug 2003 10:12:50 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <006401c35fe0$5b500630$2197fac3@mii.cz> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1060589941 17850 80.91.224.253 (11 Aug 2003 08:19:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 11 Aug 2003 08:19:01 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Mon Aug 11 10:18:59 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19m7tL-00014B-00 for ; Mon, 11 Aug 2003 10:18:59 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 72F1D10B26; Mon, 11 Aug 2003 10:18:55 +0200 (MEST) Original-Received: from belinda.mii.cz (rhea.mii.cz [212.27.214.13]) by ref.ntg.nl (Postfix) with SMTP id 6968D10B26 for ; Mon, 11 Aug 2003 10:12:51 +0200 (MEST) Original-Received: (qmail 28902 invoked from network); 11 Aug 2003 08:12:50 -0000 Original-Received: from enceladus.mii.cz (HELO enceladus) (195.250.151.33) by belinda.mii.cz with SMTP; 11 Aug 2003 08:12:50 -0000 Original-To: "ConTeXt" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk X-Reply-To: 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:12851 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:12851 Hi all, I have some problems with XML and ConTeXt, some of them are probably not implemented in ConTeXt yet. 1. XML contains <tag> I define \defineXMLargument [type] \type ConTeXt outputs <tag> It is interesting that inside \bTD..\eTD it is typeset correctly (). 2. Is there a way to get some piece of processed XML code into buffer (preserving blanks)? The first-approach solution of course does not work: \defineXMLenvironment [buffer] \startbuffer \stopbuffer never finds \stopbuffer. I suceed if \stopbuffer occured in XML code, but this is not the proper way :-). I also suceed when I defined \defineXMLenvironment [buffer] {\dostartbuffer [bname] [StartBuffer][/bufferdef>]} \relax and in the XML I wrote \... So, how to implement somehow \defineXMLverbatim [buffer] ... which finds (and stops) reading on ? 3. if XML entity is placed before \par (e.g. in verbatim XML source, where an empty line occurs) ConTeXt fails with reading entity #2 parameter (Runaway? error). Maybe \long for \def\remapXMLentity should be used? 4. if I use it does not work -- implementation using \XMLremapdata[mml] does not find any MML tag. Anyhow, I did not suceed with pre expansion of -- probably, if I am able to expand (get content of) (it contains MML tags) it would work. 5. some expansion stuffs, I expect it is a behaviour :-) but it would be pretty if it is possible. I did not suceed with using \getbuffer (aka all \process...buffer) in expanded environment. Simple use of \message{\getbuffer[somebuffer]} fails. If such expansion is possbile probably 4. would be solved too. Have a nice day and thank you, Martin -------- Martin Kolarik Moravske Pristroje, a.s., Masarykova 1148, Zlin 76302 tel. +420 603 498 498, fax +420 577 107 171 web: http://www.mii.cz -------- e-mail: kolarik@mii.cz e-mail: kolarik@click.cz tel. +420 603 535 593