This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
map the id with the anchor for sections
- From: Adrian Ionita <silviu dot ionita at probass dot ro>
- To: docbook at lists dot oasis-open dot org
- Date: Tue, 12 Nov 2002 16:28:50 +0200
- Subject: DOCBOOK: map the id with the anchor for sections
- Organization: S.C. Probass S.A.
- Reply-to: silviu dot ionita at probass dot ro
There is any way to automatically generate a correspondence between ids
of sections and generated anchors of those sections, when I generate the
html files with the backend html?
Example:
<book>
<chapter><title> C1 </title>
<section id="s1"><title> S1 </title>
...
</section>
<section id="s2"><title> S2 </title>
...
</section>
</chapter>
...
</book>
I parse the SGML files. After that, I obtain:
book1.html
c123.html
s2.html
The map file (comma separated values) witch I want to obtain for the
'id' and 'link' is:
s1, c123.html#s1
s2, s2.html
Note: I use 'sgmltools -b html' to parse the sources.