]> granicus.if.org Git - docbook-dsssl/commitdiff
Add support for xref to phrase, simpara, anchor, and quote.
authorBob Stayton <bobs@sagehill.net>
Fri, 13 Mar 2009 00:05:51 +0000 (00:05 +0000)
committerBob Stayton <bobs@sagehill.net>
Fri, 13 Mar 2009 00:05:51 +0000 (00:05 +0000)
This assumes the author specifies something using xrefstyle since
the elements don't have ordinary link text.

xsl/fo/xref.xsl

index a7a70bb810731f6ce00d00290028382ebb4c85cf..3637342c9c9d5fb658446da2ab1d35942987e020 100644 (file)
   </xsl:apply-templates>
 </xsl:template>
 
-<xsl:template match="para" mode="xref-to">
+<!-- These are elements for which no link text exists, so an xref to one
+     uses the xrefstyle attribute if specified, or if not it falls back
+     to the container element's link text -->
+<xsl:template match="para|phrase|simpara|anchor|quote" mode="xref-to">
   <xsl:param name="referrer"/>
   <xsl:param name="xrefstyle"/>
   <xsl:param name="verbose"/>