]> granicus.if.org Git - docbook-dsssl/commitdiff
fix bug in namespace fixup syntax.
authorBob Stayton <bobs@sagehill.net>
Fri, 7 Feb 2014 19:02:24 +0000 (19:02 +0000)
committerBob Stayton <bobs@sagehill.net>
Fri, 7 Feb 2014 19:02:24 +0000 (19:02 +0000)
xsl/webhelp/xsl/webhelp-common.xsl

index b0ef80e9419b795e87f846bd38fb2beb46746cc5..47b2f566241ce7f6858ec45ff3d97131c5a33d6a 100644 (file)
@@ -416,13 +416,13 @@ border: none; background: none; font-weight: none; color: none; }
                </xsl:call-template>
                <xsl:apply-templates select="exsl:node-set($nons)"/>
          </xsl:when>
-         <!-- Can't process unless namespace removed -->
-         <xsl:when test="*/self::ng:* or */self::db:*">
-               <xsl:message terminate="yes">
-                 <xsl:text>Unable to strip the namespace from DB5 document,</xsl:text>
-                 <xsl:text> cannot proceed.</xsl:text>
-               </xsl:message>
-         </xsl:when>
+          <!-- Can't process unless namespace fixed with exsl node-set()-->
+          <xsl:when test="namespace-uri(/*) = 'http://docbook.org/ns/docbook'">
+            <xsl:message terminate="yes">
+              <xsl:text>Unable to strip the namespace from DB5 document,</xsl:text>
+              <xsl:text> cannot proceed.</xsl:text>
+            </xsl:message>
+          </xsl:when>
          <xsl:otherwise>
                <xsl:choose>
                  <xsl:when test="$rootid != ''">