I can take the information out of the nodes. The main problem is to use them in 
a layout and in a sequences other the one they appear in the xml data file.

In the current (mkii) file I have something like this: 
\midaligned{\XMLflush{formalname}, \XMLflush{informalname}}.


Another point on my wishlist is to change the background of the certificate 
depending on the type of certificate. In mkii I manage to do this as follows:

File: participants.xml
<contacts>
<contact>
<formalname>Janssen</formalname>
<informalname>Piet</informalname>
<courselevel>levelA</courselevel>
</contact>
</contacts>

certificates.tex:
\resetlayer[module]{}
\setlayer[module][][]{\externalfigure[\XMLflush{courselevel}[width=\paperwidth,height=\paperheight]}

\useexternalfigure[levelA][sjablonen/backgroundlevelA.pdf]

Help is very much appreciated!

Robert


> Op 13 jun. 2017, om 09:53 heeft luigi scarso <[email protected]> het 
> volgende geschreven:
> 
> On Tue, Jun 13, 2017 at 9:40 AM,  <[email protected]> wrote:
>> Hello all,
>> 
>> I have been using Context mkii with the x-corres.mkii module for a number of 
>> years now, for many different purposes (mailings, certificates, etc). The 
>> module works with an xml (actually rng) file with the following structure:
>> 
>> <contacts>
>>        <contact label=“pietjanssen">
>>                <formalname>Janssen</formalname>
>>                <informalname>Piet</informalname>
>>        </contact>
>> </contacts>
>> 
>> The contents of each item is grabbed and put in the document by means of the 
>> command \XMLflush{formalname}.
>> 
>> I would like to shift to mkiv now with all its possibilities.
>> 
>> Yet there is no x-corres.mkiv. Who can help me out?
>> 
> I don't remember x-corres.mkiv, but
> mkiv has a guide
> tex/texmf-context/doc/context/documents/general/manuals/xml-mkiv.pdf
> 
> -- 
> luigi
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to