Hi,

Hans Hagen schrieb:
> >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.
> >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
<url>a link</url>
<url href="foo">another</url>
<url>a third</url>
\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.

Reply via email to