]> granicus.if.org Git - docbook-dsssl/commitdiff
Took the test that the manpages stylesheet does to see if there
authorMichael Smith <xmldoc@users.sourceforge.net>
Fri, 29 Jun 2007 09:15:38 +0000 (09:15 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Fri, 29 Jun 2007 09:15:38 +0000 (09:15 +0000)
are any Refentry chilren in current doc, and made it
namespace-agnostic. Reason for that is because the test otherwise
won't work when it is copied over into the generated
profile-docbook.xsl stylesheet.

xsl/manpages/docbook.xsl

index 5b97ebb5b9fd1178b370433d777476ca0ad82d53..2e8292ab57fbbc83e7052694f02e0d84e8571745 100644 (file)
         </xsl:call-template>
         <xsl:apply-templates select="exsl:node-set($stripns)"/>
       </xsl:when>
-      <xsl:when test="//refentry">
+      <xsl:when test="//*[local-name() = 'refentry']">
         <!-- * Check to see if we have any refentry children in this -->
-        <!-- * document; if so, process them. -->
+        <!-- * document; if so, process them. The reason we use -->
+        <!-- * local-name()=refentry (instead of just //refentry) to to -->
+        <!-- * check for refentry children is because this stylsheet is -->
+        <!-- * also post-processed by the stylesheet build to create the -->
+        <!-- * manpages/profile-docbook.xsl, and the refentry child check -->
+        <!-- * in the profile-docbook.xsl stylesheet won't work if we do -->
+        <!-- * a simple //refentry check. -->
         <xsl:apply-templates select="//refentry"/>
         <!-- * if $man.output.manifest.enabled is non-zero, -->
         <!-- * generate a manifest file -->