From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/18048 Path: main.gmane.org!not-for-mail From: Vit Zyka Newsgroups: gmane.comp.tex.context Subject: Re: TeX control sequence inside XML param Date: Mon, 31 Jan 2005 10:30:48 +0100 Message-ID: <41FDFAC8.2050302@seznam.cz> References: <41F8B82C.30105@seznam.cz> <41F8D636.8090600@wxs.nl> <41F90EC0.4050606@seznam.cz> <41FA73FC.3040507@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 1107163814 18991 80.91.229.6 (31 Jan 2005 09:30:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 31 Jan 2005 09:30:14 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 31 10:30:08 2005 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 1CvXsm-0005Po-00 for ; Mon, 31 Jan 2005 10:30:08 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 57D8A127A0; Mon, 31 Jan 2005 10:30:15 +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 32696-01; Mon, 31 Jan 2005 10:30:14 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AB0C41278F; Mon, 31 Jan 2005 10:30:13 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A3DD31278F for ; Mon, 31 Jan 2005 10:30:11 +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 32140-05-4 for ; Mon, 31 Jan 2005 10:30:10 +0100 (CET) Original-Received: from smtp.seznam.cz (smtp.seznam.cz [212.80.76.43]) by ronja.ntg.nl (Postfix) with SMTP id A48BF12788 for ; Mon, 31 Jan 2005 10:30:10 +0100 (CET) Original-Received: (qmail 19711 invoked from network); 31 Jan 2005 09:30:07 -0000 Original-Received: from unknown (HELO ?127.0.0.1?) (vit.zyka@82.142.74.35) by smtp.seznam.cz with SMTP; 31 Jan 2005 09:30:07 -0000 User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <41FA73FC.3040507@wxs.nl> X-Antivirus: avast! (VPS 0502-3, 14.01.2005), Outbound message X-Antivirus-Status: Clean 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:18048 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:18048 Hans Hagen wrote: > Vit Zyka wrote: > > \startXMLdata > >
>
> Cow and hacker. > > \stopXMLdata > > food for thought ... (and the wiki) That is a clever solution! This two pass tag processing. I have not been thinking this way yet. Thank you, Hans. (Wiki: http://contextgarden.net/Two_pass_tag_processing_example) Unfortunately I have next two problems: 1) How to process
 HTML tag. I have tried many solution derived from
-----
\starttext
\defineXMLenvironment[pre]
   {\starttyping}
   {\stoptyping}
\startXMLdata
   
     Some code line.
     And another one.
   
\stopXMLdata \stoptext ----- but without success. 2) It seems to me there is some catcode clash inside XML environment: ----- \defineXMLentity[hyphen]{|_|} \starttext dojde|_|li \startXMLdata dojde‐li \stopXMLdata \stoptext ------ Vit Zyka > \starttext > > \useMPlibrary[dum] > > \defineXMLentity[ctx-var-textwidth] {\textwidth} > > \defineXMLenvironmentsave > [float] > {\bgroup > \defineXMLsave[caption]% > \defineXMLignore[figure]} > {\XMLflush{float}% > \defineXMLignore > [caption] > \defineXMLcommand > [figure] > [file=dummy,context=] > {\expanded{\externalfigure > [\XMLflush{dir-fig}\XMLop{file}][\XMLop{context}]}% > \kern1em > \ignorespaces}% > \placefigure > {\XMLflush{caption}} > {\hbox{\ignorespaces\XMLflush{float}\removeunwantedspaces}}% > \egroup} > > > \startXMLdata > >
>
> Cow and hacker. > > \stopXMLdata > > \stoptext