discuss: Re: In HTML, "render" all headings as anchors
Subject:
Re: RFE: In HTML, "render" all headings as anchors
From:
David Lloyd ####@####.####
Date:
22 Mar 2002 01:45:53 -0000
Message-Id: <3C9A8F6C.7090802@rebel.net.au>
David et al:
>>My intent is to link to these headings from other webpages.
>>
>
> We can ask all authors to add id attributes for all of their sections.
> I can't think of anything else we can do.
Hack the stylesheets ;-P
It wouldn't be too hard if you know what you were doing. Pseudo code
would be:
* process nodes
* if node matches [whatever] and node does not already contain ID
attribute then:
- create uniqueid
- add this attribute to the thingo
And have an easy way to turn this on/off...
DSL
--
Praise belongs to God, the Lord of all Being,
the All Merciful, the All Compassionate
the Master of the Day of Doom.
(The Opening to the Qu'ran)