![](https://secure.gravatar.com/avatar/29c7bbff49b1599eddb2ec73fd9ffa6e.jpg?s=120&d=mm&r=g)
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? Hans van der Meer
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
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 -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Meer, H. van der