]> granicus.if.org Git - docbook-dsssl/commitdiff
Suppress extra space after xref when xrefstyle='select: label nopage' (#2740472)
authorDavid Cramer <david@thingbag.net>
Tue, 7 Apr 2009 14:16:41 +0000 (14:16 +0000)
committerDavid Cramer <david@thingbag.net>
Tue, 7 Apr 2009 14:16:41 +0000 (14:16 +0000)
xsl/fo/xref.xsl

index c53b1ff4f80ea881787175c275bd5a9209db7d66..6397fbf357152593a0e3a259502b368752cf3538 100644 (file)
@@ -88,6 +88,7 @@
         </xsl:when>
   
         <xsl:when test="$target">
+                               <xsl:variable name="label">
           <xsl:if test="not(parent::citation)">
             <xsl:apply-templates select="$target" mode="xref-to-prefix"/>
           </xsl:if>
           <xsl:if test="not(parent::citation)">
             <xsl:apply-templates select="$target" mode="xref-to-suffix"/>
           </xsl:if>
+                                       </xsl:variable>
+                                       <xsl:value-of select="normalize-space($label)"/>
         </xsl:when>
         <xsl:otherwise>
           <xsl:message>