W3C home > Mailing lists > Public > www-amaya@w3.org > January to March 1998

need a trick for browsers not supporting HTML 4.0

From: <Bertrand.Ibrahim@cui.unige.ch>
Date: Tue, 31 Mar 1998 15:21:36 +0200
To: www-amaya@w3.org
Message-id: <0EQO0004OQG1CY@cuimail.unige.ch>
Hi,

my problem is related to the "make book" facility in Amaya. To include
only a section of every "chapter" document, I had to define in each of
them a <div> section that had a specific ID, and have the links to these
"chapter" documents include an anchor with the ID. My problem is that
Nutscape doesn't know how to handle anchors defined as ID and therefore 
jumps to the end of my "chapter" documents, rather than at the beginning
of their <div> section.

To make it clearer, here is an example:

in document a.html, I have a line with:

  <a rel="chapter" href="b.html#main">bla bla</a>

and, in b.html I have:

  Some headers that shouldn't be included in printed book
  <div ID="main">
  main part of document
  ...
  </div>
  Some footers that shouldn't be included in printed book

With Nutscape, if I click in document a.html on the "bla bla" link, I
end up at the end of b.html because Nutscape doesn't find any
<a name="main"> anchor in b.html.

Does anybody know of any trick that I could use to avoid this problem
without having to re-edit my documents each time I want to generate
a book?

Thanks for your help,

Bertrand Ibrahim.
--------------------------------------------
Bertrand.Ibrahim@cui.unige.ch
http://cuiwww.unige.ch/eao/www/Bertrand.html
My PGP public key is in my WWW home page.
Its fingerprint is 27 F8 E6 45 76 C4 E4 90 C5 83 2A 14 20 CC 7D FC
Received on Tuesday, 31 March 1998 08:21:49 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:53:18 UTC