← Prev in month
← Prev in thread
problem with position()
Hello,
I'm trying to define a template to generate a particular xref label for
DB->XHTML translation.
I'm using this simple template:
<!-- This naming style assumes that a section has at most one
orderedlist child. -->
<xsl:template match="d:section/d:orderedlist/d:listitem" mode="xref-to">
<xsl:param name="referrer"/>
<xsl:param name="xrefstyle"/>
[<xsl:value-of
select="ancestor::d:section/d:titleabbrev"/>]/<xsl:copy-of
select="position()"/>
</xsl:template>
However, this always results in a label of the form "[...]/1", i.e. the
reported position is "1", no matter whether the matched listitem is
actually the first or not. (Please find attached a little test doc that
results in:
"Some text referencing [A]/1, [A]/1, and [A]/1."
(where I would expect "[A]/1, [A]/2, and [A]/3".)
Does anyone see the error ? (The links themselves are correct.)
Thanks,
Stefan
--
...ich hab' noch einen Koffer in Berlin...
← Prev in month
← Prev in thread