Hi all, I'm terribly sorry I have to send three files for this test case, but I'm trying to process xml with lua, so it's difficult to do otherwise. I have two problems: 1. (probably unrelated to xml/lua): when I try to set the options (l. 22-3 in test-style.tex) \setupxtable [split=yes, spaceinbetween=medium] for the xtable environment, I get an error: tex error > error on line 22 in file /mnt/shared/context/tex/texmf-context/tex/context/base/cont-yes.mkiv: ! You can't use `\prevdepth' in horizontal mode \nointerlineskip ^^@-\prevdepth -\thousandpoint l.22 \nointerlineskip \ctxcommand #1o-\directlua {commands.#1} \tabl_x_process ...lse \tabl_x_flush_text_checked \fi \fi \ctxcommand {x_tab... l.8 } \ctxlxml #1h-\ctxlua {lxml.#1} ... l.91 \stopluacode This looks like a buglet in xtables to me. 2. I would like to test whether a certain element has already been seen (l. 8-13 in test-style.lua). However, since tables are two-pass, the test will always return "true." How could I test properly? Thanks for your patience! Thomas