]> granicus.if.org Git - docbook-dsssl/commitdiff
Convert function-available test for node-set() function to
authorBob Stayton <bobs@sagehill.net>
Wed, 8 Apr 2009 07:44:54 +0000 (07:44 +0000)
committerBob Stayton <bobs@sagehill.net>
Wed, 8 Apr 2009 07:44:54 +0000 (07:44 +0000)
test of $exsl.node.set.available param.

xsl/eclipse/eclipse.xsl
xsl/epub/docbook.xsl
xsl/htmlhelp/htmlhelp-common.xsl
xsl/javahelp/javahelp.xsl
xsl/manpages/table.xsl

index 97d6ea4e7d2ed70f3bb10206ea018ea9ba4f6bf6..ac5a265375490df4c661a3a755bcb08b37d8f403 100644 (file)
@@ -29,9 +29,7 @@
          toss the namespace and continue.  Use the docbook5 namespaced
          stylesheets for DocBook5 if you don't want to use this feature.-->
     <!-- 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
                     and (*/self::ng:* or */self::db:*)">
       <xsl:call-template name="log.message">
         <xsl:with-param name="level">Note</xsl:with-param>
index 151478a387f52b2d2153dfc20abb36071e196f13..4a09691b73324d028ee2fe125438e95c3065832f 100644 (file)
         toss the namespace and continue.  Use the docbook5 namespaced
         stylesheets for DocBook5 if you don't want to use this feature.-->
       <!-- 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
                     and (*/self::ng:* or */self::db:*)">
         <xsl:call-template name="log.message">
           <xsl:with-param name="level">Note</xsl:with-param>
index 4108fbfd743ebdb2ebc44ba2a41d095965b22946..40f7a76245ede0a999c6e7a56594897c50236a41 100644 (file)
     <!-- Hack! If someone hands us a DocBook V5.x or DocBook NG document,
          toss the namespace and continue.  Use the docbook5 namespaced
          stylesheets for DocBook5 if you don't want to use this feature.-->
-    <!-- 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
                     and (*/self::ng:* or */self::db:*)">
       <xsl:call-template name="log.message">
         <xsl:with-param name="level">Note</xsl:with-param>
@@ -381,7 +378,8 @@ Enhanced decompilation=</xsl:text>
     </xsl:choose>
   </xsl:variable>
   <xsl:choose>
-    <xsl:when test="function-available('exsl:node-set') and function-available('set:distinct')">
+    <xsl:when test="$exsl.node.set.available != 0
+                    and function-available('set:distinct')">
       <xsl:for-each select="set:distinct(exsl:node-set($imagelist)/filename)">
         <xsl:value-of select="."/>
         <xsl:text>&#10;</xsl:text>
index 29f897c66610886e79bca7bffebba126779d9f8e..9668c99df72e104aaab2de1cb7e820310d5aa41a 100644 (file)
     <!-- Hack! If someone hands us a DocBook V5.x or DocBook NG document,
          toss the namespace and continue.  Use the docbook5 namespaced
          stylesheets for DocBook5 if you don't want to use this feature.-->
-    <!-- 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
                     and (*/self::ng:* or */self::db:*)">
       <xsl:call-template name="log.message">
         <xsl:with-param name="level">Note</xsl:with-param>
index 8321bd308f302f9161e048dcef48cb56c484b35a..cc747cc83930f306c7d860b4120ef747f130ff8a 100644 (file)
       <xsl:apply-templates select="."/>
     </xsl:variable>
     <xsl:choose>
-      <xsl:when test="function-available('exsl:node-set')">
+      <xsl:when test="$exsl.node.set.available != 0">
         <xsl:variable name="html-nodes" select="exsl:node-set($html)"/>
         <xsl:choose>
           <xsl:when test="$html-nodes//p">