[Home] [By Thread] [By Date] [Recent Entries]
I am doing the same. Below is my code!!!
<div id="docnav"> <ul> <xsl:for-each select="//docGroup//div[@type='ss1']"> <li> <a> <xsl:attribute name="href">#sec<xsl:number format="1" count="//docGroup//div[@type='ss1']" level="any" from="docGroup" /></xsl:attribute> <xsl:apply-templates select="head" mode="toc"/> </a> </li> </xsl:for-each> </ul> </div> <xsl:template match="div[@type='ss1']/head" mode="toc"> <xsl:apply-templates select="*[not(name(.)='anchor' or name(.)='pb')] |text()"/> </xsl:template> <xsl:template match="div/head">
<xsl:choose>
<xsl:when test="../@type='ss1'">
<h2>
<xsl:apply-templates/>
</h2>
</xsl:choose>
</xsl:template>At 02:20 PM 9/18/2008, David Carlisle wrote: > Actually I want to make TOC of the chapter and I want anchor in one > place but not in another place that why George's solution does not > fit for me
|

Cart



