Re: [NTG-context] Process contents of xmlflush in context
On 8/1/2015 9:13 PM, Xan wrote: Hi, I use MKIV. I want to follow Schmitz tutorial [http://www.ntg.nl/maps/42/12.pdf]. My problem is that when my xml contents has ConTeXt commands, it are ignored (printing as verbose not interpreted). How can I achieve that: ?xml version=1.0 standalone='yes'? ?xml encoding='UTF-8'? activitats activitat id=1 tema=funcions continguts=funció afí, dependència lineal, funcions a trossos presentacio tipus=tradicional sintaxi=context verbs=modelitzacióLa fitxa blava i la fitxa vermella es mouen de la manera següent: \startitemize \item la blava recorre \stopitemize /presentacio /activitat /activitats is interpreted? I want that {\start,\stop}itemize is processed. \xmlflushcontext My setup is: \startenvironment processadorxml \xmlloadonly{rebost}{dades/activitats.xml}{} \def\Activitat#1% {\xmlfilter{rebost} {/activitats/activitat[@id=='#1']/presentacio/command(xml:choose)} } \startxmlsetups xml:choose \startitem {\dontleavehmode{\xmlflush{#1}}} \stopitem \stopxmlsetups \stopenvironment Thanks a lot, Xan PS: Please, CCme. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- - 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 - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Process contents of xmlflush in context
Thanks, a lot. On Sun, 02 Aug 2015 11:56:31 +0200 Hans Hagen pra...@wxs.nl ha escrit: \xmlflushcontext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Process contents of xmlflush in context
Hi, I use MKIV. I want to follow Schmitz tutorial [http://www.ntg.nl/maps/42/12.pdf]. My problem is that when my xml contents has ConTeXt commands, it are ignored (printing as verbose not interpreted). How can I achieve that: ?xml version=1.0 standalone='yes'? ?xml encoding='UTF-8'? activitats activitat id=1 tema=funcions continguts=funció afí, dependència lineal, funcions a trossos presentacio tipus=tradicional sintaxi=context verbs=modelitzacióLa fitxa blava i la fitxa vermella es mouen de la manera següent: \startitemize \item la blava recorre \stopitemize /presentacio /activitat /activitats is interpreted? I want that {\start,\stop}itemize is processed. My setup is: \startenvironment processadorxml \xmlloadonly{rebost}{dades/activitats.xml}{} \def\Activitat#1% {\xmlfilter{rebost} {/activitats/activitat[@id=='#1']/presentacio/command(xml:choose)} } \startxmlsetups xml:choose \startitem {\dontleavehmode{\xmlflush{#1}}} \stopitem \stopxmlsetups \stopenvironment Thanks a lot, Xan PS: Please, CCme. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___