|  | Stylesheet |
<xsl:stylesheet version="2.0" exclude-result-prefixes="c">
<xsl:import href="bibliography-incl.xsl"/>
<xsl:import href="index2.xsl"/>
<xsl:include href="kwd2.xsl"/>
<xsl:template match="c:bibliography">
<xsl:variable name="artlist">
<xsl:apply-templates select="document($toclist, $indexhref)"/>
</xsl:variable>
<xsl:choose>
<xsl:when test="$acromode = "xml"">
<citationList>
<xsl:copy-of select="@*"/>
<xsl:attribute name="lastModified">
<xsl:value-of select="current-dateTime()"/>
</xsl:attribute>
<xsl:apply-templates>
<xsl:with-param name="artlist" select="$artlist"/>
</xsl:apply-templates>
</citationList>
</xsl:when>
<xsl:when test="$acromode = "TeX"">
<xsl:text>% Requires csbulacronym.sty
</xsl:text>
<xsl:text>\ActiveAmpersand
</xsl:text>
<xsl:apply-templates mode="TeX">
<xsl:with-param name="artlist" select="$artlist"/>
</xsl:apply-templates>
</xsl:when>
<xsl:otherwise>
<xsl:message terminate="yes">
Value of parameter acromode must be either xml or TeX,
<xsl:value-of select="$acromode"/> is not allowed.
</xsl:message>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="c:cite">
<xsl:param name="artlist"/>
<xsl:copy-of select="$artlist/key("article", current()/@id)"/>
</xsl:template>
<xsl:template match="c:cite" mode="TeX">
<xsl:param name="artlist"/>
<xsl:apply-templates select="$artlist/key("article", current()/@id)" mode="TeX"/>
</xsl:template>
</xsl:stylesheet> bibliography2.xsl |