]> granicus.if.org Git - docbook-dsssl/commitdiff
Fixed bug in olink resolution.
authorBob Stayton <bobs@sagehill.net>
Mon, 13 Sep 2004 16:23:06 +0000 (16:23 +0000)
committerBob Stayton <bobs@sagehill.net>
Mon, 13 Sep 2004 16:23:06 +0000 (16:23 +0000)
xsl/common/olink.xsl
xsl/html/xref.xsl

index 66301f69e91df71b044e293ea9637056efd92664..8b4eccefd6916bbd6c3c357519801a5b877aed11 100644 (file)
         </xsl:otherwise>
       </xsl:choose>
     </xsl:when>
+    <xsl:when test="@targetdoc != '' or @targetptr != ''">
+      <xsl:message>
+        <xsl:text>Olink error: no generated text for </xsl:text>
+        <xsl:text>targetdoc/targetptr/lang = '</xsl:text>
+        <xsl:value-of select="$olink.key"/>
+        <xsl:text>'.</xsl:text>
+      </xsl:message>
+      <xsl:text>????</xsl:text>
+    </xsl:when>
     <xsl:otherwise>
       <!-- old style olink -->
       <xsl:call-template name="olink.outline">
index 4572510736b45044fd5a8ed65966411cc70cf87a..b5feeb7c77499938cb049f5c54b5793da161123b 100644 (file)
         </xsl:call-template>
       </xsl:variable>
     
+      <xsl:if test="string-length($olink.key) = 0">
+        <xsl:message>
+          <xsl:text>Error: unresolved olink: </xsl:text>
+          <xsl:text>targetdoc/targetptr = '</xsl:text>
+          <xsl:value-of select="$targetdoc.att"/>
+          <xsl:text>/</xsl:text>
+          <xsl:value-of select="$targetptr.att"/>
+          <xsl:text>'.</xsl:text>
+        </xsl:message>
+      </xsl:if>
+
       <xsl:variable name="href">
         <xsl:call-template name="make.olink.href">
           <xsl:with-param name="olink.key" select="$olink.key"/>