ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: href tags
       [not found] <000001c0f3fb$6803e340$860d883e@tigger>
@ 2001-06-13 16:14 ` Hans Hagen
  0 siblings, 0 replies; only message in thread
From: Hans Hagen @ 2001-06-13 16:14 UTC (permalink / raw)
  Cc: ntg-context

Hi, 

you use a funny definition: defining <a> inside another def of <a> so there
s nothing to push/pop; you shoul dmore think along the following lines: 

% output=pdftex

\setupinteraction[state=start]

% one way [only in newest not yet public version]

\defineXMLenvironmentpush [a] [href=unknown]
  {}
  {\expanded{\useURL[dummy][\XMLpar{a}{href}{}][][\XMLpop{a}]}%
   \from[dummy]}

% more efficient [also only in newest not yet public version]

\defineXMLenvironmentpush [a] [href=unknown]
  {}
  {\expanded{\useURL[dummy][\XMLpar{a}{href}{}]}%
   \goto{\XMLpop{a}}[dummy::]}

% indirect way 

\defineXMLargument [a] [href=unknown] {\MyXMLaHandle}

\def\MyXMLaHandle#1%
  {\expanded{\useURL[dummy][\XMLpar{a}{href}{}]}%
   \goto{#1}[dummy::]}

\starttext 

\startXMLdata
test <a href="file:///D|/Manuals/index.htm">produces the following in 
Acrobat</a> test 
\stopXMLdata

\stoptext 

untested of course 

Hans
-------------------------------------------------------------------------
                                  Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-06-13 16:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <000001c0f3fb$6803e340$860d883e@tigger>
2001-06-13 16:14 ` href tags Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).