]> granicus.if.org Git - docbook-dsssl/commitdiff
Process formalpara/title to variable so can test for last
authorBob Stayton <bobs@sagehill.net>
Wed, 25 Jun 2003 06:41:59 +0000 (06:41 +0000)
committerBob Stayton <bobs@sagehill.net>
Wed, 25 Jun 2003 06:41:59 +0000 (06:41 +0000)
char of any generated text.

xsl/html/block.xsl

index ff569d073f523402d95cb659c629304ccdc14f60..8f41f1b805798331337121b8bae0d28c7b608095 100644 (file)
@@ -99,7 +99,9 @@
 </xsl:template>
 
 <xsl:template match="formalpara/title">
-  <xsl:variable name="titleStr" select="."/>
+  <xsl:variable name="titleStr">
+      <xsl:apply-templates/>
+  </xsl:variable>
   <xsl:variable name="lastChar">
     <xsl:if test="$titleStr != ''">
       <xsl:value-of select="substring($titleStr,string-length($titleStr),1)"/>
   </xsl:variable>
 
   <b>
-    <xsl:apply-templates/>
+    <xsl:copy-of select="$titleStr"/>
     <xsl:if test="$lastChar != ''
                   and not(contains($runinhead.title.end.punct, $lastChar))">
       <xsl:value-of select="$runinhead.default.title.end.punct"/>