forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johannes Schaefer <johannes.schae...@uidesign.de>
Subject Re: Problem with named anchors in HTML-pages being removed
Date Tue, 22 Feb 2005 15:10:25 GMT
This works for forrest document format:
   <section id="my_anchor">
I don't know for HTML input, though.

Have you tried <h2 id="my_anchor">?


Johannes



Ferdinand Soethe wrote:
> During some involuntary testing of treatment of local anchors in
> HTML-pages I found a rather unnerving 'feature'.
> 
> If a local anchor like
> 
> <h2><a name="myanchorID">My visible headline</a></h2>
> 
> is processed by Forrests default treatment, the anchor is
> 'disappeared' and replaced by the following code:
> 
> <a name="N10016"></a><a name="My+visible+headline"></a>
> <h3 class="boxed">My visible headline</h3>
> 
> This is no problem for Forrest internally as it uses its new
> self-generated anchors, but it is if you have other pages referencing
> this section by using the original anchor name.
> 
> And unless your page is really static, you cannot even use the new
> anchors to reference this section as the
> 
> - numeric anchor will change each time the structure of your page
>   changes while
> 
> - the text based anchor depends on the text of your heading (which
>   might change as well).
> 
> My question: Could transformation not preserve existing anchors in
> an html-page and - in case of conflict - adjust its autogenerated
> anchors to avoid the conflict.
> 
> --
> Ferdinand Soethe
> 
> 
> 


-- 
User Interface Design GmbH * Teinacher Str. 38 * D-71634 
Ludwigsburg
Fon +49 (0)7141 377 000 * Fax  +49 (0)7141 377 00-99
Geschäftsstelle: User Interface Design GmbH * 
Lehrer-Götz-Weg 11 * D-81825 München
www.uidesign.de

Buch "User Interface Tuning" von Joachim Machate & Michael 
Burmester
www.user-interface-tuning.de

Besuchen Sie uns auf der Hannover Messe 11.-15. April 2005
Halle 2, Stand C14 auf dem MMI Gemeinschaftsstand
www.uidesign.de/hmi2005

Nächstes TAE-Seminar zu User Interface Design
Ostfildern-Nellingen, 07.-08. April 2005
www.tae.de TAE-Veranstaltung Nr. 31189

Mime
View raw message