]> granicus.if.org Git - docbook-dsssl/commitdiff
Output '. ' in some contexts (this is a hack)
authorNorman Walsh <ndw@nwalsh.com>
Tue, 21 May 2002 13:49:52 +0000 (13:49 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Tue, 21 May 2002 13:49:52 +0000 (13:49 +0000)
xsl/fo/qandaset.xsl

index 65be059b6c9ccca9c3512a8336acec6e0b4fdeff..d4ccb4a7f14303ba6c9d7783c6df4920e32ce46a 100644 (file)
         <xsl:otherwise>
           <fo:block>
             <xsl:apply-templates select="." mode="label.markup"/>
+            <xsl:text>.</xsl:text> <!-- FIXME: Hack!!! This should be in the locale! -->
           </fo:block>
         </xsl:otherwise>
       </xsl:choose>
         </xsl:when>
         <xsl:otherwise>
           <fo:block>
-            <xsl:apply-templates select="." mode="label.markup"/>
+            <!-- FIXME: Hack!!! This should be in the locale! -->
+            <xsl:variable name="answer.label">
+              <xsl:apply-templates select="." mode="label.markup"/>
+            </xsl:variable>
+            <xsl:copy-of select="$answer.label"/>
+            <xsl:if test="string($answer.label) != ''">
+              <xsl:text>.</xsl:text>
+            </xsl:if>
           </fo:block>
         </xsl:otherwise>
       </xsl:choose>