From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/59225 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?TWFydGluIEtvbGHFmcOtaw==?= Newsgroups: gmane.comp.tex.context Subject: Re: Strange expansion behavior in XML/luatex Date: Tue, 01 Jun 2010 10:17:33 +0200 Message-ID: <4C04C21D.6060701@email.cz> References: <4C00E607.509@email.cz> <4C0433E7.5010402@wxs.nl> <4C04B0AE.6090500@email.cz> <4C04BC07.1090202@wxs.nl> Reply-To: martin.kolarik@email.cz, mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0908418186==" X-Trace: dough.gmane.org 1275380267 31866 80.91.229.12 (1 Jun 2010 08:17:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 1 Jun 2010 08:17:47 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jun 01 10:17:46 2010 connect(): No such file or directory Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OJMfR-0001Mb-Lg for gctc-ntg-context-518@m.gmane.org; Tue, 01 Jun 2010 10:17:45 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6AAA9C9CDB; Tue, 1 Jun 2010 10:17:44 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Og5GXLrEC7FN; Tue, 1 Jun 2010 10:17:41 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 36672C9CC7; Tue, 1 Jun 2010 10:17:41 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 44A5CC9CC7 for ; Tue, 1 Jun 2010 10:17:39 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id XOh2OTBzVUUf for ; Tue, 1 Jun 2010 10:17:37 +0200 (CEST) Original-Received: from antirelay.smtp.cz (antirelay03.smtp.cz [81.95.105.133]) by balder.ntg.nl (Postfix) with ESMTP id 0C717C9C97 for ; Tue, 1 Jun 2010 10:17:36 +0200 (CEST) Original-Received: from out.smtp.cz (ender.smtp.cz [81.95.97.119]) by antirelay.smtp.cz (Postfix) with ESMTP id AE939308441 for ; Tue, 1 Jun 2010 10:17:36 +0200 (CEST) Original-Received: from vbms.smtp.cz (danu.smtp.cz [81.95.97.125]) by out.smtp.cz (Postfix) with SMTP id A93973C00A for ; Tue, 1 Jun 2010 10:17:36 +0200 (CEST) Original-Received: from out.smtp.cz ([81.95.97.119]) by danu.smtp.cz ([81.95.97.125]) with SMTP (gateway) id A0515EA119C; Tue, 01 Jun 2010 10:17:36 +0200 Original-Received: from [192.168.8.108] (unknown [194.108.42.66]) by out.smtp.cz (Postfix) with ESMTP id 921CA3C00A for ; Tue, 1 Jun 2010 10:17:35 +0200 (CEST) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; cs; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 In-Reply-To: <4C04BC07.1090202@wxs.nl> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:59225 Archived-At: This is a multi-part message in MIME format. --===============0908418186== Content-Type: multipart/alternative; boundary="------------010803020103030204070602" This is a multi-part message in MIME format. --------------010803020103030204070602 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable I the case probably yes. Now I have new info how to continue with my=20 MkII-->MkIV conversion, so I will do. I prefer to keep the XML schema=20 and the style as clean and simple as possible, but this does not=20 necessarily mean that the typesetting code itself will be clean and=20 simple too :-), Thanks for now; I will ask you, if I do not succeed :-), Martin Dne 1.6.2010 9:51, Hans Hagen napsal(a): > On 1-6-2010 9:03, Martin Kola=C5=99=C3=ADk wrote: >> I see, >> >> and for the single case it works. Also saving is fine, I am using it. >> Unfortunately, my example was too reduced :-). In fact, I have a probl= em >> with more complex documents, for example, think about: >> >>
>> Some caption >>

Text.

>>
>> >> Now, if I want not to only typeset a caption, but also to store it and >> reuse it later (typeset it twice, e.g. in the marging or elsewhere in >> the page, ...), it fails (on \processaction, \doif, ...). > > can't you just filter the caption then? in principle you can access=20 > each element everywhere > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com > | www.pragma-pod.nl > ----------------------------------------------------------------- --------------010803020103030204070602 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I the case probably yes. Now I have new info how to continue with my MkII-->MkIV conversion, so I will do. I prefer to keep the XML schema and the style= as clean and simple = as possible, but this does not necessarily mean that the typesetting code itself will be clean and simple too :-),

Thanks for now; I will ask you, if I do not succeed :-),

Martin

Dne 1.6.2010 9:51, Hans Hagen napsal(a):
On 1-6-201= 0 9:03, Martin Kola=C5=99=C3=ADk wrote:
I see,

and for the single case it works. Also saving is fine, I am using it.
Unfortunately, my example was too reduced :-). In fact, I have a problem
with more complex documents, for example, think about:

<section>
<caption>Some <inline what=3D"something"> caption</caption>
<text><p>Text.</p></text>
</section>

Now, if I want not to only typeset a caption, but also to store it and
reuse it later (typeset it twice, e.g. in the marging or elsewhere in
the page, ...), it fails (on \processaction, \doif, ...).

can't you just filter the caption then? in principle you can access each element everywhere

-----------------------------------------------------------------
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 Hans Hagen | PRAGMA ADE
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
=C2=A0=C2=A0=C2=A0 tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-= ade.com
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | www.pragma-pod.nl
-----------------------------------------------------------------
--------------010803020103030204070602-- --===============0908418186== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0908418186==--