At 02:45 PM 4/12/2002 +0200, you wrote:
>Hi,
>
>(Sorry for the only half send text I had mailer problems. I did a copy and
>past, but there must have been a ^X somewhere in between.)
>
>I somehow have problems with \XMLpar
>
>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.
>In the second case I want to get a link with the same destination as the
><url> enclosed text.
>But I get in both cases HREF:foo. If I switch the order I get "XXXX" and
>then "foo"which I had expected. (ConTeXt  ver: 2002.3.4)
>
>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

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