]> granicus.if.org Git - docbook-dsssl/commitdiff
Added normalization to object.title.markup.textonly mode, reverted
authorMichael Smith <xmldoc@users.sourceforge.net>
Tue, 22 Aug 2006 23:24:51 +0000 (23:24 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Tue, 22 Aug 2006 23:24:51 +0000 (23:24 +0000)
copyright link template in html/chunk-common.xsl to use it, and
updated a couple of places in manpages that should have already
been using it instead of object.title.markup.

xsl/common/gentext.xsl
xsl/html/chunk-common.xsl
xsl/manpages/block.xsl
xsl/manpages/table.xsl

index 7b318a0f479bb1280ff31bf15083fcbe039f903a..975c427ca3356aa1a45365f3bd25ec0b46299349 100644 (file)
   <xsl:variable name="title">
     <xsl:apply-templates select="." mode="object.title.markup"/>
   </xsl:variable>
-  <xsl:value-of select="$title"/>
+  <xsl:value-of select="normalize-space($title)"/>
 </xsl:template>
 
 <!-- ============================================================ -->
index 31c2acdfb28546b7e3673950d030d73bef64b030..df772edae562ce44fbf429b9afb3dfdaad47529a 100644 (file)
       <xsl:attribute name="href">
         <xsl:value-of select="concat('ln-',$id,$html.ext)"/>
       </xsl:attribute>
-      <xsl:variable name="contents">
-        <xsl:apply-templates select="(//legalnotice)[1]" mode="object.title.markup.textonly"/>
-      </xsl:variable>
       <xsl:attribute name="title">
-        <xsl:value-of select="normalize-space($contents)"/>
+        <xsl:apply-templates select="(//legalnotice)[1]"
+                             mode="object.title.markup.textonly"/>
       </xsl:attribute>
     </link>
     <xsl:call-template name="make.legalnotice.head.links">
index f607c99238108669658a579f0b97bd9167c3fc85..a52076ca47907bdfd0689d3d996858416c7571c0 100644 (file)
 <xsl:template name="formal.object.heading">
   <xsl:param name="object" select="."/>
   <xsl:param name="title">
-    <bold><xsl:apply-templates select="$object" mode="object.title.markup"/></bold>
+    <bold><xsl:apply-templates select="$object" mode="object.title.markup.textonly"/></bold>
   </xsl:param>
   <xsl:apply-templates mode="bold" select="exsl:node-set($title)"/>
 </xsl:template>
index 2e8ad2085c8ae15d5e6fa1fff30f5dd4bbfe23d1..9e77ff53941e20094c591a95dc3b62d01b6bfc79 100644 (file)
@@ -43,7 +43,7 @@
     <xsl:param name="source"/>
     <xsl:param name="title">
       <xsl:if test="local-name(.) = 'table'">
-        <xsl:apply-templates select="." mode="object.title.markup"/>
+        <xsl:apply-templates select="." mode="object.title.markup.textonly"/>
       </xsl:if>
     </xsl:param>
     <!-- * ============================================================== -->