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
___________________________________________________________________________________

Reply via email to