From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/7201 Path: main.gmane.org!not-for-mail From: Michael Wiedmann Newsgroups: gmane.comp.tex.context Subject: Re: URL hyperlinks Date: Sun, 10 Mar 2002 17:17:54 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <20020310161753.GA4123@miwie.in-berlin.de> References: <20020309132757.GA2724@miwie.in-berlin.de> <878z91yckq.fsf@dellius.nederware.nl> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035397680 17252 80.91.224.250 (23 Oct 2002 18:28:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:28:00 +0000 (UTC) Cc: NTG ConTeXt Original-To: Berend de Boer In-Reply-To: <878z91yckq.fsf@dellius.nederware.nl> Xref: main.gmane.org gmane.comp.tex.context:7201 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:7201 * Berend de Boer [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: some site - 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 s, do I need unique names for \useURL ("one" in the example) or can I reuse the same name for all instances? Michael -- mw@miwie.in-berlin.de http://www.miwie.org mw@miwie.org