hi,

I have this context file:

\environment ../../../../plantilles/entorn-simple-estructurals
\environment ../../../../plantilles/entorn-simple-visuals
\environment entorn-simple-xml
...
\xmlprocessfile{demo}{80-activitats.xml}{}

this XML file (80-activitats.xml):

<?xml version="1.0" encoding="UTF-8" standalone='yes'?>
<activitats>
  <activitat id="1">
    <tipus>exercici</tipus>
    <enunciat sintaxi="context"><![CDATA[
Resol:
\startitemize[a]
\item $6(x+2)-x + 2 - 8x = 7x -2 -(7-2x)+35$
\item $-(x+2)-2(-3-x) +5x -3 = 5(x +2) -6x -16$
\item $-3(x+2) -1 +5(-x -4) = -7(-5x -2) + x -(-x +2) + 51$
\item $5(5x -2) -30 - 20(-3x +2) = 5- (10x -2) + 5x+183$
\item $8(x-3) + 5 -40x = 5 - (8x -5) + 13$
\item $5-3(4x-1) + 6(x-10) +3 = 5 + 2(x+2) -(10x -5)-64$
\item $5(x-2) + 5x -(2-5x) +1 = 3(x-2) + 3$
\item $12-12(2 -3x) +120 = -48(x + 2)+239$
\item $1 - (x-4) -(5-2x) -(-3-4x) = 6(2x-3) -7(-2x+3)$
\stopitemize
]]>
    </enunciat>
    <solucio>
\startitemize[a,text] \item $x = -1$ \item $x = -1$ \item $x = -2$ \item $x = 
3$\stopitemize
    </solucio>
  </activitat>
</activitats>

and this environment:

\startxmlsetups xml:demo:base
 \xmlsetsetup{demo}{*}{-}
 \xmlsetsetup{demo}{activitats|tipus|activitat|enunciat|solucio}{xml:demo:*}
\stopxmlsetups

\xmlregisterdocumentsetup{demo}{xml:demo:base}

\startxmlsetups xml:demo:activitats
  \title{Activitats}
  \xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:demo:activitat
  \xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:demo:enunciat
  \startexercici\xmltext{#1}{/text()}\stopexercici
\stopxmlsetups


But I get the PDF with the verbose text, not processing (I attach them)

What fails?

Thanks in advance,
Xan

Attachment: 80-seleccio.pdf
Description: Adobe PDF document

___________________________________________________________________________________
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