]> granicus.if.org Git - docbook-dsssl/commitdiff
Fix anchors for references to QandAEntrys. Output '. ' in some contexts (this is...
authorNorman Walsh <ndw@nwalsh.com>
Tue, 21 May 2002 13:49:18 +0000 (13:49 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Tue, 21 May 2002 13:49:18 +0000 (13:49 +0000)
xsl/html/qandaset.xsl

index 792c39194c4e71d5963f295eadfef273c881e510..9e0418d334cb9b715f7dcd8a5b652c937bb4dc5e 100644 (file)
 
       <b>
         <xsl:apply-templates select="." mode="label.markup"/>
+        <xsl:text>. </xsl:text> <!-- FIXME: Hack!!! This should be in the locale! -->
       </b>
     </td>
     <td align="left" valign="top">
     <td align="left" valign="top">
       <xsl:call-template name="anchor"/>
       <b>
-        <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>
       </b>
     </td>
     <td align="left" valign="top">
 
   <dt>
     <xsl:apply-templates select="." mode="label.markup"/>
-    <xsl:text> </xsl:text>
+    <xsl:text>. </xsl:text> <!-- FIXME: Hack!!! This should be in the locale! -->
     <a>
       <xsl:attribute name="href">
-        <xsl:call-template name="href.target"/>
+        <xsl:call-template name="href.target">
+          <xsl:with-param name="object" select=".."/>
+        </xsl:call-template>
       </xsl:attribute>
       <xsl:value-of select="$firstch"/>
     </a>