[NTG-context] serial letters with letter module

2011-02-10 Thread R. Ermers, Midden Oosten Perspectief
Dear All,

I have been using Hans' old correspondence module with an xml - rng database as 
documented for a number of years.

I now want to switch to Wolfgang's letter module, but do not know how to 
connect it to the xml database. For example, commands like:

\XMLprocesscontacts[./../../adressen-xml/adressen.xml]

\setvariables
[letter:data]
[address=\XMLflush{address},
prefix=\XMLflush{prefix}
]

do not work anymore.

Could anyone (Wolfgang?) help me out in this ? I have installed both mkiv and 
mkii.

Thanks on beforehand,

Robert


___
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
___


Re: [NTG-context] serial letters with letter module

2011-02-10 Thread Wolfgang Schuster

Am 10.02.2011 um 10:14 schrieb R. Ermers, Midden Oosten Perspectief:

 Dear All,
 
 I have been using Hans' old correspondence module with an xml - rng database 
 as documented for a number of years.
 
 I now want to switch to Wolfgang's letter module, but do not know how to 
 connect it to the xml database. For example, commands like:
 
 \XMLprocesscontacts[./../../adressen-xml/adressen.xml]
 
 \setvariables
 [letter:data]
 [address=\XMLflush{address},
 prefix=\XMLflush{prefix}
 ]
 
 do not work anymore.
 
 Could anyone (Wolfgang?) help me out in this ? I have installed both mkiv and 
 mkii.

This works with MkII (pragma.xml contains the data from the manual):

\usemodule[letter][extension=corres]

\setvariables
  [contacts]
  [selection=pragma-pod,
   file=pragma.xml]

\startlettercontent
\input knuth
\stoplettercontent

\starttext
\XMLprocesscontacts[pragma.xml]
\stoptext

As Hans correspondence module is only available for MkII you can’t use MkIV for 
your serial letters.

Wolfgang

___
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
___