[NTG-context] Process contents of xmlflush in context

Hans Hagen pragma at wxs.nl
Sun Aug 2 11:56:31 CEST 2015


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 at 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
-----------------------------------------------------------------


More information about the ntg-context mailing list