ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Process contents of xmlflush in context
@ 2015-08-01 19:13 Xan
  2015-08-02  9:56 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Xan @ 2015-08-01 19:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-08-02 20:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-01 19:13 Process contents of xmlflush in context Xan
2015-08-02  9:56 ` Hans Hagen
2015-08-02 20:04   ` Xan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).