Hi folks,
I am trying to customize references to listitems as follows:
<xsl:template match="jlistref">
<phrase status="print">
<xref>
<xsl:copy-of select="@*"/>
<xsl:attribute name="linkend">
<xsl:copy-of select="@*"/>
<xsl:value-of select="@ref"/>
</xsl:attribute>
<xsl:attribute name="xrefstyle">
<xsl:value-of select="'template:Step %n on page %p'"/>
</xsl:attribute>
</xref>
</phrase>
<phrase status="html">
<xref>
<xsl:copy-of select="@*"/>
<xsl:attribute name="linkend">
<xsl:copy-of select="@*"/>
<xsl:value-of select="@ref"/>
</xsl:attribute>
<xsl:attribute name="xrefstyle">
<xsl:value-of select="'template:Step %n'"/>
</xsl:attribute>
</xref>
</phrase>
</xsl:template>
So that when I compile a PDF, an xref will look like as follows:
refer to Step <number> on page <number>.
In HTML, though, it must be just: Step <number>
However, the template above does not affect anything. The reference appears as
default.
Please, advise!
Thanks a lot in advance!Nancy