From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/7626 Path: main.gmane.org!not-for-mail From: Tobias Burnus Newsgroups: gmane.comp.tex.context Subject: Re: ConTeXt XML question Date: Fri, 12 Apr 2002 16:45:19 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <3CB6F2FF.FBDE3F91@gmx.de> References: <5.1.0.14.1.20020412155531.02d66008@server-1> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035398077 20784 80.91.224.250 (23 Oct 2002 18:34:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:34:37 +0000 (UTC) Original-To: NTG-ConTeXt Xref: main.gmane.org gmane.comp.tex.context:7626 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:7626 Hi, Hans Hagen schrieb: > >I have > > bar > > http://www.bar > >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}]} \starttext \startXMLdata a link another a third \stopXMLdata \stoptext ------------- produces ---------------- Href:DEFAULT / text:a link Href:foo / text:another Href:foo / text:a third I have three additional problems (with version 2002.3.27/beta): * In the bookmarks/documentinfo of Acrobat Reader the umlauts are followed by {}, e.g. Eine Ü{}bersicht * clicking on a link, the page is "fitted to window" how can I set it to e.g. fit to width? (as openaction, I know how to do so, but for links/bookmarks?) * How can I set the keywords part of Acrobat's "Document Info"? Since our indexer can use this information, I'd like to use it. Tobias -- This above all: To thine own self be true / And it must follow as the night the day / Thou canst not then be false to any man.