Hi,
I have the following xml setup with a lua function:

\startluacode
                function markingLength(s)
                _,n = s:gsub("%S+","")
                if n > 3 then
                context("yes" .. " ...") else context("no") end
                end
\stopluacode

\startxmlsetups xml:ink:ink-title:marking
                %\ctxlua{markingLength(\xmlflush{#1})}  % does not work
                \ctxlua{markingLength{"1 2 3 4"}}
\stopxmlsetups

While the function works, I cannot use xmlflush here. How can I properly pass 
the xml content to the lua function?

Best,
Denis
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

Reply via email to