<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="bib" select="document($bibliography.collection,.)"/>
<xsl:variable name="entry" select="$bib/bibliography/*[@id=$id][1]"/>
<xsl:choose>
<xsl:when test="$entry">
<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="bib" select="document($bibliography.collection,.)"/>
<xsl:variable name="entry" select="$bib/bibliography/*[@id=$id][1]"/>
<xsl:choose>
<xsl:when test="$entry">
<xsl:text>[</xsl:text>
<xsl:choose>
<xsl:when test="string(.) = ''">
- <xsl:variable name="bib" select="document($bibliography.collection)"/>
+ <xsl:variable name="bib" select="document($bibliography.collection,.)"/>
<xsl:variable name="id" select="@id"/>
<xsl:variable name="entry" select="$bib/bibliography/*[@id=$id][1]"/>
<xsl:choose>
<xsl:choose>
<xsl:when test="string(.) = ''">
- <xsl:variable name="bib" select="document($bibliography.collection)"/>
+ <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:choose>
<xsl:when test="string(.) = ''">
- <xsl:variable name="bib" select="document($bibliography.collection)"/>
+ <xsl:variable name="bib" select="document($bibliography.collection,.)"/>
<xsl:variable name="entry" select="$bib/bibliography/*[@id=$id][1]"/>
<xsl:choose>
<xsl:when test="$entry">
<!-- handles both biblioentry and bibliomixed -->
<xsl:choose>
<xsl:when test="string(.) = ''">
- <xsl:variable name="bib" select="document($bibliography.collection)"/>
+ <xsl:variable name="bib" select="document($bibliography.collection,.)"/>
<xsl:variable name="id" select="@id"/>
<xsl:variable name="entry" select="$bib/bibliography/*[@id=$id][1]"/>
<xsl:choose>