]> granicus.if.org Git - docbook-dsssl/commitdiff
Improved error message
authorNorman Walsh <ndw@nwalsh.com>
Sun, 12 May 2002 11:29:56 +0000 (11:29 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Sun, 12 May 2002 11:29:56 +0000 (11:29 +0000)
xsl/common/titles.xsl

index 2e038c0e7984af9302c4335901faa8192832f197..ff485b41ca9b979362c3190491cf3093c4ea89b0 100644 (file)
@@ -32,8 +32,13 @@ title of the element. This does not include the label.
     </xsl:when>
     <xsl:otherwise>
       <xsl:message>
-       <xsl:text>Request for title of unexpected element: </xsl:text>
+       <xsl:text>Request for title of element with no title: </xsl:text>
        <xsl:value-of select="name(.)"/>
+        <xsl:if test="@id">
+          <xsl:text> (id="</xsl:text>
+          <xsl:value-of select="@id"/>
+          <xsl:text>")</xsl:text>
+        </xsl:if>
       </xsl:message>
       <xsl:text>???TITLE???</xsl:text>
     </xsl:otherwise>