]> granicus.if.org Git - docbook-dsssl/commitdiff
Adjust namespace fixup to match other templates.
authorBob Stayton <bobs@sagehill.net>
Wed, 29 Jan 2014 02:44:14 +0000 (02:44 +0000)
committerBob Stayton <bobs@sagehill.net>
Wed, 29 Jan 2014 02:44:14 +0000 (02:44 +0000)
xsl/profiling/xsl2profile.xsl

index ecb6501eeead40e41ec2e339e67b40b578cddb3a..d224d6f83595dfd8a5444134eb2b75ed6c2b98b5 100644 (file)
   <xslo:include href="../profiling/profile-mode.xsl"/>
   <xslo:variable name="profiled-content">
     <xslo:choose>
-      <xslo:when test="*/self::ng:* or */self::db:*">
-        <xslo:message>Note: namesp. cut : stripped namespace before processing</xslo:message>
-        <xslo:variable name="stripped-content">
-          <xslo:apply-templates select="/" mode="stripNS"/>
-        </xslo:variable>
-        <xslo:message>Note: namesp. cut : processing stripped document</xslo:message>
+
+      <xslo:when test="$exsl.node.set.available != 0 and 
+                    namespace-uri(/*) = 'http://docbook.org/ns/docbook'">
+        <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="context-desc">
+            <xslo:text>namesp. cut</xslo:text>
+          </xslo:with-param>
+          <xslo:with-param name="message">
+            <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:when>
       <xslo:otherwise>