From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/17541 Path: main.gmane.org!not-for-mail From: Richard Gabriel Newsgroups: gmane.comp.tex.context Subject: Re: XML in ConTeXt & verbatim text Date: Thu, 16 Dec 2004 16:36:07 +0100 Message-ID: <41C1AB67.2010400@kerio.com> References: <41BF0B35.4070301@kerio.com> <20041214172728.20974@news.comp.lancs.ac.uk> <41C05BA3.9010507@kerio.com> <41C06CE7.7040702@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1103211393 13204 80.91.229.6 (16 Dec 2004 15:36:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 16 Dec 2004 15:36:33 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Dec 16 16:36:22 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Cexfy-0003Oc-00 for ; Thu, 16 Dec 2004 16:36:22 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D58CA127B3; Thu, 16 Dec 2004 16:36:19 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09993-03; Thu, 16 Dec 2004 16:36:15 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3C899127A8; Thu, 16 Dec 2004 16:36:15 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 32C05127A8 for ; Thu, 16 Dec 2004 16:36:13 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 10103-01-3 for ; Thu, 16 Dec 2004 16:36:12 +0100 (CET) Original-Received: from mx1.kerio.com (unknown [195.39.55.2]) by ronja.ntg.nl (Postfix) with ESMTP id 09D5412796 for ; Thu, 16 Dec 2004 16:36:11 +0100 (CET) Original-Received: from [192.168.44.160] ([192.168.44.160]) (authenticated user rgabriel@kerio.com) by mx1.kerio.com (Kerio MailServer 6.0.5); Thu, 16 Dec 2004 16:36:11 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a4) Gecko/20040926 X-Accept-Language: cs, en-us, en, sk Original-To: mailing list for ConTeXt users , pragma@wxs.nl In-Reply-To: <41C06CE7.7040702@wxs.nl> X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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 X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:17541 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:17541 Hello Hans, thank you very much for the advice. It works almost perfectly, except one small (but important) detail: Let's have a HTML source code in the tag. It will be stored the following way in the XML file: <html> <body> <p>Some text</p> </body> </html> I have defined the entity conversion: \defineXMLentity[gt]{\char`\>{}} \defineXMLentity[lt]{\char`\<{}} This works OK if the entities occur somewhere in the normal text but it doesn't matter in the verbatim text. Is there any solution for this? Maybe changing catcodes of the & and ; characters? Thanks again... Richard Hans Hagen wrote: > Richard Gabriel wrote: > > maybe the following is better > > \defineXMLenvironment > [programlisting] > {\processtaggeddisplayverbatim{}} > {} > > \startbuffer > > Line 1 > Line 2 > Line 3 > > \stopbuffer > > \starttext > > \processXMLbuffer > > \stoptext > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com > | www.pragma-pod.nl > ----------------------------------------------------------------- > > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context