![](https://secure.gravatar.com/avatar/565476157eb3895a9c928ffce26d988d.jpg?s=120&d=mm&r=g)
19 Sep
2018
19 Sep
'18
6:50 a.m.
Hi, Is there a more elegant way to feed an xml tree into a context() command that what I have below? \startluacode function xml.functions.heading(t) context.section("{") lxml.flush(t) context("}") end \stopluacode The subtree in âtâ could have embedded xml tags that should be processed, so just stripping it clean will not do. (this is not about \section as such, I just needed an example. \startsection would be more modern, but it would not help fix the issue ) Thanks for any help, Taco