<!-- ==================================================================== -->
<xsl:template match="biblioentry">
- <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
+ <xsl:param name="label">
+ <xsl:call-template name="biblioentry.label"/>
+ </xsl:param>
+
+ <xsl:variable name="id">
+ <xsl:call-template name="object.id"/>
+ </xsl:variable>
+
<xsl:choose>
<xsl:when test="string(.) = ''">
<xsl:variable name="bib" select="document($bibliography.collection,.)"/>
<xsl:variable name="entry" select="$bib/bibliography/*[@id=$id][1]"/>
<xsl:choose>
<xsl:when test="$entry">
- <xsl:apply-templates select="$entry"/>
+ <xsl:choose>
+ <xsl:when test="$bibliography.numbered != 0">
+ <xsl:apply-templates select="$entry">
+ <xsl:with-param name="label" select="$label"/>
+ </xsl:apply-templates>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates select="$entry"/>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:message>
<xsl:otherwise>
<fo:block id="{$id}" xsl:use-attribute-sets="normal.para.spacing"
start-indent="0.5in" text-indent="-0.5in">
- <xsl:call-template name="biblioentry.label"/>
+ <xsl:copy-of select="$label"/>
<xsl:apply-templates mode="bibliography.mode"/>
</fo:block>
</xsl:otherwise>
</xsl:template>
<xsl:template match="bibliomixed">
- <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
+ <xsl:param name="label">
+ <xsl:call-template name="biblioentry.label"/>
+ </xsl:param>
+
+ <xsl:variable name="id">
+ <xsl:call-template name="object.id"/>
+ </xsl:variable>
+
<xsl:choose>
<xsl:when test="string(.) = ''">
<xsl:variable name="bib" select="document($bibliography.collection,.)"/>
<xsl:variable name="entry" select="$bib/bibliography/*[@id=$id][1]"/>
<xsl:choose>
<xsl:when test="$entry">
- <xsl:apply-templates select="$entry"/>
+ <xsl:choose>
+ <xsl:when test="$bibliography.numbered != 0">
+ <xsl:apply-templates select="$entry">
+ <xsl:with-param name="label" select="$label"/>
+ </xsl:apply-templates>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates select="$entry"/>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:message>
<xsl:otherwise>
<fo:block id="{$id}" xsl:use-attribute-sets="normal.para.spacing"
start-indent="0.5in" text-indent="-0.5in">
- <xsl:call-template name="biblioentry.label"/>
+ <xsl:copy-of select="$label"/>
<xsl:apply-templates mode="bibliomixed.mode"/>
</fo:block>
</xsl:otherwise>
<!-- ==================================================================== -->
<xsl:template match="biblioentry">
+ <xsl:param name="label">
+ <xsl:call-template name="biblioentry.label"/>
+ </xsl:param>
+
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<xsl:variable name="entry" select="$bib/bibliography/*[@id=$id][1]"/>
<xsl:choose>
<xsl:when test="$entry">
- <xsl:apply-templates select="$entry"/>
+ <xsl:choose>
+ <xsl:when test="$bibliography.numbered != 0">
+ <xsl:apply-templates select="$entry">
+ <xsl:with-param name="label" select="$label"/>
+ </xsl:apply-templates>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates select="$entry"/>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:message>
<div class="{name(.)}">
<xsl:call-template name="anchor"/>
<p>
- <xsl:call-template name="biblioentry.label"/>
+ <xsl:copy-of select="$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:copy-of select="$label"/>
<xsl:apply-templates mode="bibliography.mode"/>
</p>
</div>
</xsl:template>
<xsl:template match="bibliomixed">
+ <xsl:param name="label">
+ <xsl:call-template name="biblioentry.label"/>
+ </xsl:param>
+
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<xsl:variable name="entry" select="$bib/bibliography/*[@id=$id][1]"/>
<xsl:choose>
<xsl:when test="$entry">
- <xsl:apply-templates select="$entry"/>
+ <xsl:choose>
+ <xsl:when test="$bibliography.numbered != 0">
+ <xsl:apply-templates select="$entry">
+ <xsl:with-param name="label" select="$label"/>
+ </xsl:apply-templates>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates select="$entry"/>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:message>
<div class="{name(.)}">
<xsl:call-template name="anchor"/>
<p>
- <xsl:call-template name="biblioentry.label"/>
+ <xsl:copy-of select="$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 class="{name(.)}">
- <xsl:call-template name="biblioentry.label"/>
+ <xsl:copy-of select="$label"/>
<xsl:apply-templates mode="bibliomixed.mode"/>
</p>
</div>