]> granicus.if.org Git - docbook-dsssl/commitdiff
for missing title in xref, provide parent information of target to help locate proble...
authorBob Stayton <bobs@sagehill.net>
Tue, 22 Jan 2013 22:05:35 +0000 (22:05 +0000)
committerBob Stayton <bobs@sagehill.net>
Tue, 22 Jan 2013 22:05:35 +0000 (22:05 +0000)
Process bridgehead in mode="title.markup", not normal mode.

xsl/common/titles.xsl

index bb0aefc7e2ff53cbfa8a5b92f661e3aa46b8a105..6e82b094674be79a20fd6d92bdd370bb2b62d380 100644 (file)
@@ -61,6 +61,15 @@ title of the element. This does not include the label.
               <xsl:value-of select="@xml:id"/>
               <xsl:text>")</xsl:text>
             </xsl:when>
+            <xsl:otherwise>
+              <xsl:text> (contained in </xsl:text>
+              <xsl:value-of select="local-name(..)"/>
+              <xsl:if test="../@id or ../@xml:id">
+                <xsl:text> with id </xsl:text>
+                <xsl:value-of select="../@id | ../@xml:id"/>
+              </xsl:if>
+              <xsl:text>)</xsl:text>
+            </xsl:otherwise>
           </xsl:choose>
         </xsl:message>
       </xsl:if>
@@ -274,7 +283,7 @@ title of the element. This does not include the label.
 </xsl:template>
 
 <xsl:template match="bridgehead" mode="title.markup">
-  <xsl:apply-templates/>
+  <xsl:apply-templates mode="title.markup"/>
 </xsl:template>
 
 <xsl:template match="refsynopsisdiv" mode="title.markup">