]> granicus.if.org Git - docbook-dsssl/commitdiff
Fix bug 2815493 missing exsl.node.set.available parameter.
authorBob Stayton <bobs@sagehill.net>
Wed, 1 Jul 2009 22:58:19 +0000 (22:58 +0000)
committerBob Stayton <bobs@sagehill.net>
Wed, 1 Jul 2009 22:58:19 +0000 (22:58 +0000)
xsl/profiling/profile.xsl

index f1cd6f91cc5c78f675ac6e5598ce08d8cf9c4165..b188fbb2d442204aa57d44f9a4ba6b724862da2c 100644 (file)
 <xsl:param name="profile.value" select="''"/>
 <xsl:param name="profile.separator" select="';'"/>
 
+<xsl:param name="exsl.node.set.available"> 
+  <xsl:choose>
+    <xsl:when xmlns:exsl="http://exslt.org/common" exsl:foo="" test="function-available('exsl:node-set') or contains(system-property('xsl:vendor'), 'Apache Software Foundation')">1</xsl:when>
+    <xsl:otherwise>0</xsl:otherwise>
+  </xsl:choose>
+</xsl:param>
+
 <!-- Call common profiling mode -->
 <xsl:template match="/">
   <xsl:apply-templates select="." mode="profile"/>