]> granicus.if.org Git - docbook-dsssl/commitdiff
Fixed missing xref-to-prefix and xref-to-suffix modes that
authorBob Stayton <bobs@sagehill.net>
Mon, 28 Feb 2005 07:08:14 +0000 (07:08 +0000)
committerBob Stayton <bobs@sagehill.net>
Mon, 28 Feb 2005 07:08:14 +0000 (07:08 +0000)
were added to html xref.xsl and used in common/titles.xsl.

xsl/fo/xref.xsl

index 910c46befb76fc19a8ec63e91f8e4d9f5d401df9..a14944fe9e7de37280ef682cc837b69ab077348c 100644 (file)
@@ -72,6 +72,8 @@
     </xsl:when>
 
     <xsl:otherwise>
+      <xsl:apply-templates select="$target" mode="xref-to-prefix"/>
+
       <fo:basic-link internal-destination="{@linkend}"
                      xsl:use-attribute-sets="xref.properties">
         <xsl:apply-templates select="$target" mode="xref-to">
@@ -88,6 +90,8 @@
           </xsl:with-param>
         </xsl:apply-templates>
       </fo:basic-link>
+
+      <xsl:apply-templates select="$target" mode="xref-to-suffix"/>
     </xsl:otherwise>
   </xsl:choose>
 
 
 <!--- ==================================================================== -->
 
+<xsl:template match="*" mode="xref-to-prefix"/>
+<xsl:template match="*" mode="xref-to-suffix"/>
+
 <xsl:template match="*" mode="xref-to">
   <xsl:param name="referrer"/>
   <xsl:param name="xrefstyle"/>
   </xsl:apply-templates>
 </xsl:template>
 
+<xsl:template match="biblioentry|bibliomixed" mode="xref-to-prefix">
+  <xsl:text>[</xsl:text>
+</xsl:template>
+
+<xsl:template match="biblioentry|bibliomixed" mode="xref-to-suffix">
+  <xsl:text>]</xsl:text>
+</xsl:template>
+
 <xsl:template match="biblioentry|bibliomixed" mode="xref-to">
   <xsl:param name="referrer"/>
   <xsl:param name="xrefstyle"/>
   <xsl:param name="verbose" select="1"/>
 
   <!-- handles both biblioentry and bibliomixed -->
-  <xsl:text>[</xsl:text>
   <xsl:choose>
     <xsl:when test="string(.) = ''">
       <xsl:variable name="bib" select="document($bibliography.collection,.)"/>
       </xsl:choose>
     </xsl:otherwise>
   </xsl:choose>
-  <xsl:text>]</xsl:text>
 </xsl:template>
 
 <xsl:template match="glossary" mode="xref-to">