Re: [xsl] generating <a href="#section"> menus. Related to <xsl:for-each> and generate-id()

Subject: Re: [xsl] generating <a href="#section"> menus. Related to <xsl:for-each> and generate-id()
From: Tobias Reif <tobiasreif@xxxxxxxxxxxxx>
Date: Tue, 14 Jan 2003 15:50:41 +0100
P.S.
I am generating the descriptive IDs from the section titles:


If you need to deal with duplicate (identical after "cleaning") titles, you can combine generate-id() with the string generated from the title.

Duplicates might occur when you apply the template to a book (site) containing chapters (probably pages in your case) containing sections, instead of applying it to a single chapter (page).

But when transforming chapters/pages (eg chunks of a book) to chapter/page files (not one monolithic book file), it works well, since in general, I expect the section titles of one chapter to be unique, and I like plain english URLs without too many numbers and generate-id stuff.


Tobi



--


Vim users               donate.
http://iccf-holland.org/donate.html

Web developers           check.
http://www.pinkjuice.com/check/


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread