Thomas A. Schmitz wrote:
> On Mar 25, 2008, at 3:38 PM, Peter Rolf wrote:
>> your original example works here too. today's context and latest
>> luatex.
>>
>> hth, peter
>
> Wait wait wait ... you mean you get correct output with the example I
> posted in this thread? In that case, I'm completely baffled, because I
> get something like this
>
> ..
> ..
> .. three
>
> Hans, is there any way to capture the intermediate result into which
> ConTeXt transforms the xml file before it processes it?
hm, you can patch in lxml-ini.lua
local function sprint(root)
if not root then
-- quit
elseif type(root) == 'string' then
print(root)
capture:match(root)
elseif next(root) then
xml.serialize(root,sprint,nil,nil,xml.specialhandler)
end
end
and remake the format
keep in mind that in mkiv we basically have a kind of big evergoing
nested expansion i.e. piping to tex whicn can call lua which again can
piping into tex etc etc
Hans
-----------------------------------------------------------------
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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________