]> granicus.if.org Git - docbook-dsssl/commitdiff
Fixed bug in handling of namespace fixup.
authorBob Stayton <bobs@sagehill.net>
Wed, 29 Jan 2014 21:45:03 +0000 (21:45 +0000)
committerBob Stayton <bobs@sagehill.net>
Wed, 29 Jan 2014 21:45:03 +0000 (21:45 +0000)
xsl/profiling/xsl2profile.xsl

index d224d6f83595dfd8a5444134eb2b75ed6c2b98b5..bdcb7566aed9378cabedff15b7ab066e5ac9219c 100644 (file)
 
       <xslo:when test="$exsl.node.set.available != 0 and 
                     namespace-uri(/*) = 'http://docbook.org/ns/docbook'">
+        <xslo:variable name="no.namespace">
+          <xslo:apply-templates select="/*" mode="stripNS"/>
+        </xslo:variable>
         <xslo:call-template name="log.message">
           <xslo:with-param name="level">Note</xslo:with-param>
-          <xslo:with-param name="source" select="$doc.title"/>
+          <xslo:with-param name="source">
+            <xslo:call-template name="get.doc.title"/>
+          </xslo:with-param>
           <xslo:with-param name="context-desc">
             <xslo:text>namesp. cut</xslo:text>
           </xslo:with-param>
@@ -74,7 +79,7 @@
             <xslo:text>stripped namespace before processing</xslo:text>
           </xslo:with-param>
         </xslo:call-template>
-        <xslo:apply-templates select="exslt:node-set($stripped-content)" mode="profile"/>
+        <xslo:apply-templates select="exslt:node-set($no.namespace)" mode="profile"/>
       </xslo:when>
       <xslo:otherwise>
         <xslo:apply-templates select="/" mode="profile"/>
 </xsl:template>
 
 <!-- DB5 namespace stripping is already done  -->
-<xsl:template match="xsl:when[contains(@test, 'self::db')]" mode="correct">
+<xsl:template match="xsl:when[contains(@test, 'namespace-uri')
+                          and contains(@test, 'http://docbook.org/ns/docbook')]" mode="correct">
   <xsl:copy>
     <xsl:attribute name="test">false()</xsl:attribute>
   </xsl:copy>