From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/7215 Path: main.gmane.org!not-for-mail From: Berend de Boer Newsgroups: gmane.comp.tex.context Subject: Re: URL hyperlinks Date: 11 Mar 2002 08:04:05 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <877kojvb4q.fsf@dellius.nederware.nl> References: <20020309132757.GA2724@miwie.in-berlin.de> <878z91yckq.fsf@dellius.nederware.nl> <20020310161753.GA4123@miwie.in-berlin.de> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035397694 17418 80.91.224.250 (23 Oct 2002 18:28:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:28:14 +0000 (UTC) Cc: NTG ConTeXt Original-To: Michael Wiedmann In-Reply-To: <20020310161753.GA4123@miwie.in-berlin.de> Xref: main.gmane.org gmane.comp.tex.context:7215 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:7215 Michael Wiedmann writes: > 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 I suppose \goto can take a url directoryl, so you don't have to use \useURL. Have you tried this? > - only the first character of the XML element text ("s") is taken as the > hyperlink text \useURL has four commands: \useURL [ufdhc] [http://www.eiffel-forum.org/archive/dominicu/fdh.htm] [] [Unix File/Directory Handling Cluster] The 4th is the replacement text, so you get the text, and not the URL. If the 4th is not provided, you just get the url. -- Groetjes, Berend. (-: