]> granicus.if.org Git - docbook-dsssl/commitdiff
Convert function-available(exsl:node-set) to use the new param
authorBob Stayton <bobs@sagehill.net>
Tue, 17 Mar 2009 06:53:03 +0000 (06:53 +0000)
committerBob Stayton <bobs@sagehill.net>
Tue, 17 Mar 2009 06:53:03 +0000 (06:53 +0000)
so Xalan bug is isolated.

xsl/common/pi.xsl
xsl/common/stripns.xsl

index b76c6b99d1d96da58063f143d076c5b1766899a8..467717416550da63d3f3d1b3f5cb6153e0d98d0f 100644 (file)
       </xsl:call-template>
     </xsl:variable>
     <xsl:choose>
-      <!-- include extra test for Xalan quirk -->
-      <xsl:when test="function-available('exsl:node-set') or 
-        contains(system-property('xsl:vendor'),'Apache Software Foundation')">
+      <xsl:when test="$exsl.node.set.available != 0">
         <!-- We must preserve context node in order to get valid language -->
         <xsl:variable name="context" select="."/>
         <xsl:for-each select="exsl:node-set($tokenized-format-string)/node()">
index d7bc0531e2d820beaa9da18a57f1b052161245c5..db860dc418661f428a5031dd71788eef2102bb50 100644 (file)
 
 <xsl:template match="/" priority="-1">
   <xsl:choose>
-    <xsl:when test="(function-available('exsl:node-set') or
-                     contains(system-property('xsl:vendor'),
-                       'Apache Software Foundation'))
+    <xsl:when test="$exsl.node.set.available != 0
                     and (*/self::ng:* or */self::db:*)">
       <xsl:message>Stripping namespace from DocBook 5 document.</xsl:message>
       <xsl:variable name="nons">