[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: generating <a href="#section"> menus. Related to <
Hi Sherzod, > To go further with my nonsense... I tried: > > <xsl:template match="sect"> > <a name="{generate-id()}"><xsl:value-of select="title" /></a> > </xsl:template> > > to book mark each section with unique name. And somewhere else, > I wanted to get the list of all the generated names(ids) and titles for > the table of contents. You just need to make sure that the IDs that you reference in the table of contents are generated in the same way as the IDs that you generate in the body of the document. So if you're creating anchors with: <a name="{generate-id()">...</a> then you need to create references to those anchors with: <a href="#{generate-id()}">...</a> Cheers, Jeni --- Jeni Tennison http://www.jenitennison.com/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|