Re: [NTG-context] Links in exported XHTML file

2011-10-25 Thread Andreas Harder

On 25.10.2011, at 00:20, Hans Hagen wrote:

 On 24-10-2011 23:22, Andreas Harder wrote:
 
 On 24.10.2011, at 15:01, Hans Hagen wrote:
 
 On 21-10-2011 11:27, Andreas Harder wrote:
 \setupinteraction[state=start]
 
 \setupbackend[export=yes,xhtml=yes,css=export-example.css]
 
 \starttext
   \useURL[google][http://www.google.com/][][Google] \from[google]
   \textreference[txt:ref]{some text} \in[txt:ref] % OK
   \goto{Google}[url(http://www.google.com/)]
 \stoptext
 
 in next beta
 
 Thanks Hans, but now the text reference is *not* wrapped in xhml:a-tags.
 
  at.href = # .. gsub(at.location,:,_)
 
 =
 
href = # .. gsub(at.location,:,_)

Thanks again, but here is another one … sorry for complaining

\setupinteraction[state=start]
\setupbackend[export=yes,xhtml=yes,css=export-example.css]

\starttext
  \goto{Pragma (url)}[url(http://www.pragma-ade.com/)] % OK
  \goto{PDF 
(file)}[file(http://www.pragma-ade.com/general/manuals/ms-cb-en.pdf)] 
  \goto{PDF 
(fileorurl)}[fileorurl(http://www.pragma-ade.com/general/manuals/ms-cb-en.pdf)]
\stoptext

Andreas
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Links in exported XHTML file

2011-10-24 Thread Hans Hagen

On 21-10-2011 11:27, Andreas Harder wrote:

\setupinteraction[state=start]

\setupbackend[export=yes,xhtml=yes,css=export-example.css]

\starttext
   \useURL[google][http://www.google.com/][][Google] \from[google]
   \textreference[txt:ref]{some text} \in[txt:ref] % OK
   \goto{Google}[url(http://www.google.com/)]
\stoptext


in next beta

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Links in exported XHTML file

2011-10-21 Thread Andreas Harder
Hi all,

how do I manage to get proper links in the exported XHTML document. It works 
well with intern references.

\setupinteraction[state=start]

\setupbackend[export=yes,xhtml=yes,css=export-example.css]

\starttext
  \useURL[google][http://www.google.com/][][Google] \from[google] 
  \textreference[txt:ref]{some text} \in[txt:ref] % OK
  \goto{Google}[url(http://www.google.com/)]
\stoptext

I would appreciate any tips.


Regards
Andreas
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___