W3C home > Mailing lists > Public > www-amaya@w3.org > October to December 2009

Enh. Req: Option to have Table of Contents Tool Create Numeric Id's

From: Joe Webster <webster.joe@gmail.com>
Date: Mon, 02 Nov 2009 23:37:18 +0000
Message-ID: <fb82f8e50911021536v4ab3714bv759e5125b09df33@mail.gmail.com>
To: www-amaya <www-amaya@w3.org>
Hi,

In a document that looks like this:

<h1>Main Title</h1>
<h2>Step 1</h2>
<h2>Step 2</h2>
<h2>Step 3</h2>

after generating a Table of Contents the headings are assigned id's that
look like this.

<h1>Main Title</h1>
<h2 id="Step">Step 1</h2>
<h2 id="Step1">Step 2</h2>
<h2 id="Step2">Step 3</h2>

Not only is it confusing to have a document where "Step2" identifies a
section labeled "Step 3" but things get worse when the section headings
change. E.g.

<h1>Main Title</h1>

<h2 id="Step">Task 440</h2>
<h2 id="Step1">Task 450</h2>
<h2 id="Step2">Task 470</h2>

Now we have "Step" identifying headings that do not even use the term
"Step".

It would be nice if the Table of Contents tool could assign unique,
non-intelligent id's like "id-1", "id-2", "id-3" to headings. Mozilla based
editors already take this approach by creating id's of the form
"mozTocId260519".

Thx.


(tested on Amaya 11.2)
Received on Tuesday, 3 November 2009 09:43:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 November 2009 09:43:24 GMT