ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Problem with the verbosity of XML
@ 2014-07-27 17:24 Xan
  2014-07-28  9:19 ` Hans Hagen
  2014-07-28 11:13 ` Xan
  0 siblings, 2 replies; 5+ messages in thread
From: Xan @ 2014-07-27 17:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 1676 bytes --]

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 #2: 80-seleccio.pdf --]
[-- Type: application/pdf, Size: 21768 bytes --]

[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 5+ messages in thread

end of thread, other threads:[~2014-07-30  8:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-27 17:24 Problem with the verbosity of XML Xan
2014-07-28  9:19 ` Hans Hagen
2014-07-28 11:13 ` Xan
2014-07-28 15:52   ` Hans Hagen
2014-07-30  8:24   ` 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).