]> granicus.if.org Git - docbook-dsssl/commitdiff
pass xrefstyle param from link element to gentext.template so
authorBob Stayton <bobs@sagehill.net>
Mon, 3 Feb 2014 22:24:14 +0000 (22:24 +0000)
committerBob Stayton <bobs@sagehill.net>
Mon, 3 Feb 2014 22:24:14 +0000 (22:24 +0000)
optional page number can be formatted to a style.

xsl/fo/xref.xsl

index f4332b11c4459f1f5c0244acb3bc243b029b7806..75b5a8907bdcbe5b25bf09606aa0eb40bc3629f8 100644 (file)
                      and $insert.xref.page.number.para = 'yes')">
       <xsl:apply-templates select="$target" mode="page.citation">
         <xsl:with-param name="id" select="$target/@id|$target/@xml:id"/>
+        <xsl:with-param name="xrefstyle" select="$xrefstyle"/>
       </xsl:apply-templates>
     </xsl:when>
   </xsl:choose>
                      or $insert.link.page.number = '1')">
       <xsl:apply-templates select="$target" mode="page.citation">
         <xsl:with-param name="id" select="$linkend"/>
+        <xsl:with-param name="xrefstyle" select="$xrefstyle"/>
       </xsl:apply-templates>
     </xsl:when>
   </xsl:choose>
 
 <xsl:template match="*" mode="page.citation">
   <xsl:param name="id" select="'???'"/>
+  <xsl:param name="xrefstyle" select="''"/>
 
   <fo:basic-link internal-destination="{$id}"
                  xsl:use-attribute-sets="xref.properties">
           <xsl:call-template name="gentext.template">
             <xsl:with-param name="name" select="'page.citation'"/>
             <xsl:with-param name="context" select="'xref'"/>
+            <xsl:with-param name="xrefstyle" select="$xrefstyle"/>
           </xsl:call-template>
         </xsl:with-param>
       </xsl:call-template>