Re: [NTG-context] content of xml node (element) in lua

2020-10-17 Thread Jano Kula
On Sat, 17 Oct 2020 at 12:02, Hans Hagen wrote: > On 10/17/2020 12:16 AM, mf wrote: > > (sorry, I sent it before refining it) > > > > Il 16/10/20 20:57, Jano Kula ha scritto: > >> Hello! > >> > >> Processing XML I want to manipulate content of XML elements inside Lua. > >> > >> I can define the

Re: [NTG-context] content of xml node (element) in lua

2020-10-17 Thread Hans Hagen
On 10/17/2020 12:16 AM, mf wrote: (sorry, I sent it before refining it) Il 16/10/20 20:57, Jano Kula ha scritto: Hello! Processing XML I want to manipulate content of XML elements inside Lua. I can define the Lua function xml.functions.name (t), where processing

Re: [NTG-context] content of xml node (element) in lua

2020-10-16 Thread mf
(sorry, I sent it before refining it) Il 16/10/20 20:57, Jano Kula ha scritto: Hello! Processing XML I want to manipulate content of XML elements inside Lua. I can define the Lua function xml.functions.name (t), where processing happens, and use the command

[NTG-context] content of xml node (element) in lua

2020-10-16 Thread Jano Kula
Hello! Processing XML I want to manipulate content of XML elements inside Lua. I can define the Lua function xml.functions.name(t), where processing happens, and use the command \xmlfunction{#1}{name} to pass the current node #1 from ctx to lua as described in the xml-mkiv.pdf manual. To access