[NTG-context] XML: mapping definiton on the fly?

Hans Hagen pragma at wxs.nl
Fri Feb 15 21:47:01 CET 2008


Johannes Graumann wrote:
> Hans,
> 
> Can you drop any hints as to whether this is even possible and whether
> there's something exemplary around I may meditate about?

this kind of questions always puts me in "need to think about it" mode 
which may take some time

anyhow, one solution is ...

\startluacode
   for e, d, t in xml.elements(lxml.id("#1")) do
	tex.sprint(...)	
   end
\stopluacode

of course ... untested

for nicer solutions i need more time



-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list