* Links in exported XHTML file
@ 2011-10-21 9:27 Andreas Harder
2011-10-24 13:01 ` Hans Hagen
0 siblings, 1 reply; 3+ messages in thread
From: Andreas Harder @ 2011-10-21 9:27 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Links in exported XHTML file
2011-10-21 9:27 Links in exported XHTML file Andreas Harder
@ 2011-10-24 13:01 ` Hans Hagen
[not found] ` <5BC53C41-293F-4501-8465-82CF39F11C8A@uni-koblenz.de>
0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2011-10-24 13:01 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Links in exported XHTML file
[not found] ` <4EA5E497.9060201@wxs.nl>
@ 2011-10-25 9:16 ` Andreas Harder
0 siblings, 0 replies; 3+ messages in thread
From: Andreas Harder @ 2011-10-25 9:16 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-10-25 9:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-21 9:27 Links in exported XHTML file Andreas Harder
2011-10-24 13:01 ` Hans Hagen
[not found] ` <5BC53C41-293F-4501-8465-82CF39F11C8A@uni-koblenz.de>
[not found] ` <4EA5E497.9060201@wxs.nl>
2011-10-25 9:16 ` Andreas Harder
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).