]> granicus.if.org Git - docbook-dsssl/commitdiff
Support xref to bridgehead
authorNorman Walsh <ndw@nwalsh.com>
Sun, 8 Jul 2001 15:36:27 +0000 (15:36 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Sun, 8 Jul 2001 15:36:27 +0000 (15:36 +0000)
xsl/common/gentext.xsl
xsl/common/titles.xsl
xsl/fo/sections.xsl
xsl/fo/xref.xsl
xsl/html/xref.xsl

index b62b66fe492320a67bf96151a5409ec82e8ae9b0..9a173bc8f749f17149ddaae07e1f386ef46f9e69 100644 (file)
@@ -13,7 +13,8 @@
   </xsl:call-template>
 </xsl:template>
 
-<xsl:template match="section|sect1|sect2|sect3|sect4|sect5|simplesect"
+<xsl:template match="section|sect1|sect2|sect3|sect4|sect5|simplesect
+                     |bridgehead"
               mode="object.title.template">
   <xsl:choose>
     <xsl:when test="$section.autolabel != 0">
@@ -74,7 +75,8 @@
 
 <xsl:template match="section|simplesect
                      |sect1|sect2|sect3|sect4|sect5
-                     |refsect1|refsect2|refsect3"
+                     |refsect1|refsect2|refsect3
+                     |bridgehead"
               mode="object.xref.template">
   <xsl:choose>
     <xsl:when test="$section.autolabel != 0">
 
 <xsl:template match="section|simplesect
                      |sect1|sect2|sect3|sect4|sect5
-                     |refsect1|refsect2|refsect3"
+                     |refsect1|refsect2|refsect3
+                     |bridgehead"
               mode="object.xref.markup">
   <xsl:variable name="template">
     <xsl:apply-templates select="." mode="object.xref.template"/>
index 85e8deaf386498237bb23d1011e9bce01c90bf31..a8e7450c8f9bb5e9c2f1993551446def661a62a4 100644 (file)
@@ -196,6 +196,10 @@ title of the element. This does not include the label.
   </xsl:apply-templates>
 </xsl:template>
 
+<xsl:template match="bridgehead" mode="title.markup">
+  <xsl:apply-templates mode="title.markup"/>
+</xsl:template>
+
 <xsl:template match="bibliography" mode="title.markup">
   <xsl:param name="allow-anchors" select="'0'"/>
   <xsl:variable name="title" select="(bibliographyinfo/title|title)[1]"/>
index 17c7304bc7ff3eee89a34e44695d73c23a5c113f..d11e214d8d0019399a49e34895aef5d735fcd03b 100644 (file)
     </xsl:choose>
   </xsl:variable>
 
-  <xsl:call-template name="section.heading">
-    <xsl:with-param name="level" select="$level"/>
-    <xsl:with-param name="title">
-      <xsl:apply-templates/>
-    </xsl:with-param>
-  </xsl:call-template>
+  <xsl:variable name="id">
+    <xsl:call-template name="object.id"/>
+  </xsl:variable>
+
+  <fo:block id="{$id}">
+    <xsl:call-template name="section.heading">
+      <xsl:with-param name="level" select="$level"/>
+      <xsl:with-param name="title">
+        <xsl:apply-templates/>
+      </xsl:with-param>
+    </xsl:call-template>
+  </fo:block>
 </xsl:template>
 
 </xsl:stylesheet>
index 5ce775c25e21cb2d040e9f38fd64a0bab6a45cc8..699c74a15514188c91f971d04b263a6ce20b6472 100644 (file)
   <!-- What about "in Chapter X"? -->
 </xsl:template>
 
+<xsl:template match="bridgehead" mode="xref-to">
+  <xsl:apply-templates select="." mode="object.xref.markup"/>
+  <!-- What about "in Chapter X"? -->
+</xsl:template>
+
 <xsl:template match="qandaset" mode="xref-to">
   <xsl:apply-templates select="." mode="object.xref.markup"/>
 </xsl:template>
index 2a884faad0ef17b750206e5f5efde430dbb868de..652c1c6b08df3612ebb8d3a51e405c43fe53d318 100644 (file)
   <!-- What about "in Chapter X"? -->
 </xsl:template>
 
+<xsl:template match="bridgehead" mode="xref-to">
+  <xsl:apply-templates select="." mode="object.xref.markup"/>
+  <!-- What about "in Chapter X"? -->
+</xsl:template>
+
 <xsl:template match="qandaset" mode="xref-to">
   <xsl:apply-templates select="." mode="object.xref.markup"/>
 </xsl:template>