Lynn Lobash on Tuesday 20 May 2008 17:27:
> Does anyone know how to write this anchor tag?
> <!--This template formats various head (here, series unittitles)
> elements and makes them targets for links from the Table of
> Contents.-->
> <xsl:template match="c01[@level='series']/did/unittitle">
> <h4>
> <a name="?">
> <!--The path needs to read ($file)b.html#series + position(), for
> example:filenameb.html#series2, see href established in TOC pasted
> below. -->
> <xsl:apply-templates/>
> </a>
> </h4>
> </xsl:template>
Maybe you could use generate-id()?
Not sure is this is what you're after:
<xsl:variable name="series_unittitle_position"
select="count(preceding::unittitle[parent::did/parent::c01[@level='series']]) +1" />
<xsl:message terminate="no" select="$series_unittitle_position, ':', ../../name(), ' ' , ../unitid, ' - ', text()" />
cheers, Dirk
|