From: Xan <dxpublica@telefonica.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Process contents of xmlflush in context
Date: Sat, 1 Aug 2015 21:13:53 +0200 [thread overview]
Message-ID: <20150801211353.8b1fdc4f93e875dede39a41d@telefonica.net> (raw)
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
___________________________________________________________________________________
next reply other threads:[~2015-08-01 19:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-01 19:13 Xan [this message]
2015-08-02 9:56 ` Hans Hagen
2015-08-02 20:04 ` Xan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150801211353.8b1fdc4f93e875dede39a41d@telefonica.net \
--to=dxpublica@telefonica.net \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).