At 04:45 PM 4/12/2002 +0200, Tobias Burnus wrote:
>Hi,
>
>Hans Hagen schrieb:
> > >I have
> > >  <url href="foo">bar</url>
> > >  <url>http://www.bar</url>
> > >In the first  case I want to get a link with the destination given in
> > >href.
> > >I tried:
> > >\def\Url[#1]#2{{HREF:#1 URL:#2}}
> > >\defineXMLargument[url]{\Url[\XMLpar{url}{href}{XXXX}]}
> > \define...[url]{\expanded{\URL....}..
> > so, by expanding you fix the values
>
>It still doesn't seem to work :-(
>---------------- This -----------------
>\def\Url[#1]#2{Href:#1 / text:#2}
>%\def\Url#1{{\useURL[foo][[\XMLpar{url}{href}{#1}]\goto{\url[foo]}[url(#1)]}}
>\defineXMLargument[url]{\expanded\Url[\XMLpar{url}{href}{DEFAULT}]}

\expanded{\somecommand stuff to expand}

so, expanded takes an argument! and the first thing in there is not 
expanded, you forgot the {}

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

Reply via email to