]> granicus.if.org Git - docbook-dsssl/commitdiff
Removed single-pass namespace stripping from manpages stylesheet.
authorMichael Smith <xmldoc@users.sourceforge.net>
Sun, 21 Jan 2007 08:33:44 +0000 (08:33 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Sun, 21 Jan 2007 08:33:44 +0000 (08:33 +0000)
To process DocBook 5 instances, either use the experimental
namespace-aware DocBook 5 XSL 1.0 stylesheets, or pre-process your
source to do the namespace stripping (two-pass processing).

xsl/manpages/docbook.xsl

index 0c15bd6867ad31aae61d34e56f84d73c68d3a441..3a0b40148b38c96486fada6cf6348edb227b737d 100644 (file)
   <!-- ==================================================================== -->
 
   <xsl:template match="/">
-    <!-- * If we detect that this document is a DocBook 5/NG doc, then we -->
-    <!-- * need to pre-process it to strip out the namespace and to change -->
-    <!-- * a few other things so that we can process it with the stylesheets -->
-    <xsl:choose>
-      <xsl:when test="*/self::ng:* or */self::db:*">
-        <xsl:message>Note: Stripping NS from DocBook 5/NG document.</xsl:message>
-        <xsl:variable name="nons">
-          <xsl:apply-templates mode="stripNS"/>
-        </xsl:variable>
-        <xsl:message>Note: Processing stripped document.</xsl:message>
-        <xsl:apply-templates select="exsl:node-set($nons)"/>
-      </xsl:when>
-      <xsl:otherwise>
-        <!-- * Otherwise, we do not have a DocBook 5/NG document, or we are -->
-        <!-- * at the point where the first pass has already been done to -->
-        <!-- * strip out the namespace; so we can now process it. -->
         <xsl:choose>
           <xsl:when test="//refentry">
             <!-- * Check to see if we have any refentry children in this -->
             </xsl:message>
           </xsl:otherwise>
         </xsl:choose>
-      </xsl:otherwise>
-    </xsl:choose>
   </xsl:template>
 
   <!-- ============================================================== -->