On 2-1-2012 14:55, Meer, H. van der wrote:
The following setup gives an error.
\startxmlsetups xam:parameter \edef\parameter{\xmltrim{#1}} \stopxmlsetups
system> tex> error on line 7 in file xam-test.tex: Undefined control sequence ... \@@su:xam:parameter #1->\edef \parameter {\xmltrim {#1}}\verbose {parameter .. l.7 }
How to avoid that one?
depends on the rest of the code anyhow, using \parameter as name is not a good idea (can clash) \setvariables[MyNameSpace][MyKey=\xmltrim{#1}] ... \getvariable{MyNameSpace}{MyKey} is nicer ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------