At 05:19 PM 4/14/2002 +0200, Tobias Burnus wrote:
>Hi,
>
> > I need something like a \XMLeraseAttribute{url}{href}.
>
>Ok. I found a solution:
>
>\unprotect
>\def\XMLeraseattr#1#2{\@EA\let\csname\@@XMLvariable:#1:#2\endcsname\undefined}
>\protect
maybe i should indeed add such an eraser
>\setupcolors[state=start]
>\setupinteraction[state=start, color=blue]
>
>\def\Url#1{%
> \useURL[c][#1]%
> \useURL[h][\XMLpar{url}{href}{#1}]%
> \goto{\url[c]}[url(h)]%
> \XMLeraseattr{url}{href}%
>}
>\defineXMLargument[url]\Url
sorry for misunderstanding you requirement, this it the way:
\defineXMLargument [url] [href=] \Url
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------