* Berend de Boer <[EMAIL PROTECTED]> [020309 16:40]:
 
> \useURL
>   [context]
>   [http://www.pragma-ade.com]

I got the general idea, but can't get the following peace of code do
what I want (surely due to my poor TeX/ConTeXt knowledge):

- given a peace of XML like:

  <ulink url="http://www.somewhere.net";>some site</ulink>

- I want to map this XML to ConText hyperlinks like:

  \def\makeulink#1{%
    \useURL[one][\XMLpar{ulink}{url}{}]%
    \goto{#1}[URL(one)]}
  \defineXMLcommand[ulink] \makeulink

Two unsolved issues remain:

- only the first character of the XML element text ("s") is taken as the
  hyperlink text

- given the fact, that there might be many <ulink>s, do I need unique
  names for \useURL ("one" in the example) or can I reuse the same name
  for all instances?

Michael
-- 
[EMAIL PROTECTED]                              http://www.miwie.org
[EMAIL PROTECTED]

Reply via email to