]> granicus.if.org Git - docbook-dsssl/commitdiff
Make consistent handling of titleabbrev in xrefs.
authorBob Stayton <bobs@sagehill.net>
Tue, 22 Jan 2013 22:08:30 +0000 (22:08 +0000)
committerBob Stayton <bobs@sagehill.net>
Tue, 22 Jan 2013 22:08:30 +0000 (22:08 +0000)
xsl/common/gentext.xsl
xsl/fo/xref.xsl
xsl/html/xref.xsl

index 197815fd63b88ddf4bd45c88f942ce4d09109209..6cfad535e8530abc6b20a1751c2f9b30416dbc2f 100644 (file)
                 <xsl:when test="$title != ''">
                   <xsl:copy-of select="$title"/>
                 </xsl:when>
+                <xsl:when test="$purpose = 'xref'">
+                  <xsl:apply-templates select="." mode="titleabbrev.markup">
+                    <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
+                    <xsl:with-param name="verbose" select="$verbose"/>
+                  </xsl:apply-templates>
+                </xsl:when>
                 <xsl:otherwise>
                   <xsl:apply-templates select="." mode="title.markup">
                     <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
index 86b50a0c6036309c55e92a9832c1cb661f06839a..db95815f9dfafdd67ac39a587a1574345828c3fd 100644 (file)
   <xsl:param name="title"/>
 
   <xsl:choose>
-    <!-- FIXME: what about the case where titleabbrev is inside the info? -->
-    <xsl:when test="$purpose = 'xref' and titleabbrev">
-      <xsl:apply-templates select="." mode="titleabbrev.markup"/>
+    <xsl:when test="$purpose = 'xref'">
+      <xsl:copy-of select="$title"/>
     </xsl:when>
     <xsl:otherwise>
       <xsl:copy-of select="$title"/>
index 6ba899233dc75e631a6900b8baf490437673ef30..d8b5d6fcbac60f02f27bced284b281aa39317d1d 100644 (file)
   <xsl:param name="title"/>
 
   <xsl:choose>
-    <!-- FIXME: what about the case where titleabbrev is inside the info? -->
-    <xsl:when test="$purpose = 'xref' and titleabbrev">
-      <xsl:apply-templates select="." mode="titleabbrev.markup"/>
+    <xsl:when test="$purpose = 'xref'">
+      <xsl:copy-of select="$title"/>
     </xsl:when>
     <xsl:otherwise>
       <xsl:copy-of select="$title"/>