]> granicus.if.org Git - docbook-dsssl/commitdiff
Fix page number citation code
authorNorman Walsh <ndw@nwalsh.com>
Thu, 4 Jul 2002 15:10:33 +0000 (15:10 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Thu, 4 Jul 2002 15:10:33 +0000 (15:10 +0000)
xsl/fo/glossary.xsl

index f1629e56cf3e430399bc506d6f42c6f12c06d4f6..95afbd13cd5bcb1f392e2d5dde7f7c6b37b695f6 100644 (file)
   <fo:basic-link internal-destination="{$id}"
                  xsl:use-attribute-sets="xref.properties">
     <xsl:apply-templates/>
-    <xsl:call-template name="insert.page.citation">
-      <xsl:with-param name="id" select="$id"/>
-    </xsl:call-template>
   </fo:basic-link>
+
+  <xsl:if test="$insert.xref.page.number != 0">
+    <xsl:apply-templates select="parent::glossentry" mode="page.citation">
+      <xsl:with-param name="id" select="$id"/>
+    </xsl:apply-templates>
+  </xsl:if>
 </xsl:template>
 
 <!-- ==================================================================== -->