| | Stylesheet |
<xsl:stylesheet version="1.0" extension-element-prefixes="exslt msxml xalanc" exclude-result-prefixes="c exslt msxml xalanc">
<xsl:import href="bibliography-incl.xsl"/>
<xsl:import href="index.xsl"/>
<xsl:include href="kwd.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:choose>
<xsl:when test="function-available("exslt:node-set")">
<xsl:apply-templates>
<xsl:with-param name="artlist" select="exslt:node-set($artlist)"/>
</xsl:apply-templates>
</xsl:when>
<xsl:when test="function-available("msxml:node-set")">
<xsl:apply-templates>
<xsl:with-param name="artlist" select="msxml:node-set($artlist)"/>
</xsl:apply-templates>
</xsl:when>
<xsl:when test="function-available("xalanc:nodeset")">
<xsl:apply-templates>
<xsl:with-param name="artlist" select="xalanc:nodeset($artlist)"/>
</xsl:apply-templates>
</xsl:when>
<xsl:otherwise>
<xsl:message terminate="yes">
EXSLT:node-set not found!
</xsl:message>
</xsl:otherwise>
</xsl:choose>
</citationList>
</xsl:when>
<xsl:when test="$acromode = "TeX"">
<xsl:text>% Requires csbulacronym.sty
</xsl:text>
<xsl:text>\ActiveAmpersand
</xsl:text>
<xsl:choose>
<xsl:when test="function-available("exslt:node-set")">
<xsl:apply-templates mode="TeX">
<xsl:with-param name="artlist" select="exslt:node-set($artlist)"/>
</xsl:apply-templates>
</xsl:when>
<xsl:when test="function-available("msxml:node-set")">
<xsl:apply-templates mode="TeX">
<xsl:with-param name="artlist" select="msxml:node-set($artlist)"/>
</xsl:apply-templates>
</xsl:when>
<xsl:when test="function-available("xalanc:nodeset")">
<xsl:apply-templates mode="TeX">
<xsl:with-param name="artlist" select="xalanc:nodeset($artlist)"/>
</xsl:apply-templates>
</xsl:when>
<xsl:otherwise>
<xsl:message terminate="yes">
EXSLT:node-set not found!
</xsl:message>
</xsl:otherwise>
</xsl:choose>
</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:variable name="id" select="@id"/>
<xsl:for-each select="$artlist">
<xsl:copy-of select="key("article", $id)"/>
</xsl:for-each>
</xsl:template>
<xsl:template match="c:cite" mode="TeX">
<xsl:param name="artlist"/>
<xsl:variable name="id" select="@id"/>
<xsl:for-each select="$artlist">
<xsl:apply-templates select="key("article", $id)" mode="TeX"/>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet> bibliography.xsl |