On 25-10-2011 11:43, Thomas A. Schmitz wrote:
\startxmlsetups xml:nattable \startluacode if xml.attribute(t, "/", "frame", "off") == "on" then context("Yes, the frame is really on!") else context("Nope, sorry, it's still off.") end context(true) context.placefigure( { "here" }, "none" , function() context.bTABLE() context.xmlflush("#1") context.eTABLE() end) \stopluacode \stopxmlsetups
see Wolfgangs answer anyway, best move the lua code and wrap it in a function "document.MyWhatever" ... now its get defined each time Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------