<div class="{name(.)}">
<xsl:call-template name="anchor"/>
<p>
+ <xsl:call-template name="biblioentry.label"/>
<xsl:text>Error: no bibliography entry: </xsl:text>
<xsl:value-of select="$id"/>
<xsl:text> found in </xsl:text>
<div class="{name(.)}">
<xsl:call-template name="anchor"/>
<p>
+ <xsl:call-template name="biblioentry.label"/>
<xsl:apply-templates mode="bibliography.mode"/>
</p>
</div>
<xsl:text> found in </xsl:text>
<xsl:value-of select="$bibliography.collection"/>
</xsl:message>
- <div id="{$id}" class="{name(.)}">
+ <div class="{name(.)}">
<xsl:call-template name="anchor"/>
<p>
+ <xsl:call-template name="biblioentry.label"/>
<xsl:text>Error: no bibliography entry: </xsl:text>
<xsl:value-of select="$id"/>
<xsl:text> found in </xsl:text>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
- <div id="{$id}" class="{name(.)}">
+ <div class="{name(.)}">
<xsl:call-template name="anchor"/>
- <p>
- <xsl:choose>
- <xsl:when test="local-name(*[1]) = 'abbrev'">
- <xsl:apply-templates select="*[position()>1]|text()"
- mode="bibliomixed.mode"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates mode="bibliomixed.mode"/>
- </xsl:otherwise>
- </xsl:choose>
+ <p class="{name(.)}">
+ <xsl:call-template name="biblioentry.label"/>
+ <xsl:apply-templates mode="bibliomixed.mode"/>
</p>
</div>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
+<xsl:template name="biblioentry.label">
+ <xsl:param name="node" select="."/>
+
+ <xsl:text>[</xsl:text>
+ <xsl:choose>
+ <xsl:when test="local-name($node/child::*[1]) = 'abbrev'">
+ <xsl:apply-templates select="$node/abbrev[1]"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$node/@id"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:text>] </xsl:text>
+</xsl:template>
+
<!-- ==================================================================== -->
<xsl:template match="*" mode="bibliography.mode">
</xsl:template>
<xsl:template match="abbrev" mode="bibliography.mode">
- <span class="{name(.)}">
- <xsl:text>[</xsl:text>
+ <xsl:if test="preceding-sibling::*">
<xsl:apply-templates mode="bibliography.mode"/>
- <xsl:text>] </xsl:text>
- </span>
+ </xsl:if>
</xsl:template>
<xsl:template match="abstract" mode="bibliography.mode">
</xsl:template>
<xsl:template match="abbrev" mode="bibliomixed.mode">
- <span class="{name(.)}">
+ <xsl:if test="preceding-sibling::*">
<xsl:apply-templates mode="bibliomixed.mode"/>
- </span>
+ </xsl:if>
</xsl:template>
<xsl:template match="abstract" mode="bibliomixed.mode">