]> granicus.if.org Git - docbook-dsssl/commitdiff
Handle Xalan quirk as special case.
authorBob Stayton <bobs@sagehill.net>
Sat, 11 Nov 2006 08:59:07 +0000 (08:59 +0000)
committerBob Stayton <bobs@sagehill.net>
Sat, 11 Nov 2006 08:59:07 +0000 (08:59 +0000)
xsl/html/db5strip.xsl

index a17710e1fd64ec1c44aaea385492d53a78822341..94c0b9c3611072e69bb1a3330853caf523d11191 100644 (file)
 
 <xsl:template match="/">
   <xsl:choose>
-    <xsl:when test="function-available('exsl:node-set')
-                   and (*/self::ng:* or */self::db:*)">
+    <!-- include extra test for Xalan quirk -->
+    <xsl:when test="(function-available('exsl:node-set') or
+                     contains(system-property('xsl:vendor'),
+                       'Apache Software Foundation'))
+                    and (*/self::ng:* or */self::db:*)">
       <!-- Hack! If someone hands us a DocBook V5.x or DocBook NG document,
           toss the namespace and continue. Someday we'll reverse this logic
           and add the namespace to documents that don't have one.
           But not before the whole stylesheet has been converted to use
           namespaces. i.e., don't hold your breath -->
-      <xsl:message>Stripping NS from DocBook 5/NG document.</xsl:message>
+      <xsl:message>Stripping namespace from DocBook 5 document.</xsl:message>
       <xsl:apply-templates mode="stripNS"/>
     </xsl:when>
     <xsl:otherwise>