]> granicus.if.org Git - docbook-dsssl/commitdiff
Generate error message if olink data in targetset is in a namespace.
authorBob Stayton <bobs@sagehill.net>
Thu, 29 Mar 2012 05:48:10 +0000 (05:48 +0000)
committerBob Stayton <bobs@sagehill.net>
Thu, 29 Mar 2012 05:48:10 +0000 (05:48 +0000)
xsl/common/olink.xsl

index 3513795acf8a5a73f8e03c9b20c4be456a9ccfed..c892dd7472d96d860fb556bd9d1c50ac4aedab84 100644 (file)
         <xsl:text>and targetptr attributes.</xsl:text>
       </xsl:message>
     </xsl:when>
+    <xsl:when test="namespace-uri($target.database/*) != ''">
+      <xsl:message>
+        <xsl:text>Olink error: the targetset element and children in '</xsl:text>
+        <xsl:value-of select="$target.database.document"/>
+        <xsl:text>' should not be in any namespace.</xsl:text>
+      </xsl:message>
+    </xsl:when>
     <!-- Did it not open? Should be a targetset element -->
     <xsl:when test="not($target.database/*)">
       <xsl:message>