From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/7655 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: ConTeXt XML question Date: Sun, 14 Apr 2002 22:17:39 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <5.1.0.14.1.20020414221608.03d08500@server-1> References: <5.1.0.14.1.20020412155531.02d66008@server-1> <5.1.0.14.1.20020412171245.03a0a750@server-1> <5.1.0.14.1.20020413202740.05649438@server-1> <3CB98E83.BE5F85DA@gmx.de> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1035398102 20982 80.91.224.250 (23 Oct 2002 18:35:02 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:35:02 +0000 (UTC) Cc: NTG-ConTeXt Original-To: Tobias Burnus In-Reply-To: <3CB99DEA.113C0ABB@gmx.de> Xref: main.gmane.org gmane.comp.tex.context:7655 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:7655 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 | pragma@wxs.nl 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 -------------------------------------------------------------------------