From: <bob...@us...> - 2009-04-08 07:45:01
|
Revision: 8400 http://docbook.svn.sourceforge.net/docbook/?rev=8400&view=rev Author: bobstayton Date: 2009-04-08 07:44:54 +0000 (Wed, 08 Apr 2009) Log Message: ----------- Convert function-available test for node-set() function to test of $exsl.node.set.available param. Modified Paths: -------------- trunk/xsl/eclipse/eclipse.xsl trunk/xsl/epub/docbook.xsl trunk/xsl/htmlhelp/htmlhelp-common.xsl trunk/xsl/javahelp/javahelp.xsl trunk/xsl/manpages/table.xsl Modified: trunk/xsl/eclipse/eclipse.xsl =================================================================== --- trunk/xsl/eclipse/eclipse.xsl 2009-04-08 07:37:42 UTC (rev 8399) +++ trunk/xsl/eclipse/eclipse.xsl 2009-04-08 07:44:54 UTC (rev 8400) @@ -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> Modified: trunk/xsl/epub/docbook.xsl =================================================================== --- trunk/xsl/epub/docbook.xsl 2009-04-08 07:37:42 UTC (rev 8399) +++ trunk/xsl/epub/docbook.xsl 2009-04-08 07:44:54 UTC (rev 8400) @@ -100,10 +100,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> Modified: trunk/xsl/htmlhelp/htmlhelp-common.xsl =================================================================== --- trunk/xsl/htmlhelp/htmlhelp-common.xsl 2009-04-08 07:37:42 UTC (rev 8399) +++ trunk/xsl/htmlhelp/htmlhelp-common.xsl 2009-04-08 07:44:54 UTC (rev 8400) @@ -45,10 +45,7 @@ <!-- 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 @@ </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> </xsl:text> Modified: trunk/xsl/javahelp/javahelp.xsl =================================================================== --- trunk/xsl/javahelp/javahelp.xsl 2009-04-08 07:37:42 UTC (rev 8399) +++ trunk/xsl/javahelp/javahelp.xsl 2009-04-08 07:44:54 UTC (rev 8400) @@ -33,10 +33,7 @@ <!-- 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> Modified: trunk/xsl/manpages/table.xsl =================================================================== --- trunk/xsl/manpages/table.xsl 2009-04-08 07:37:42 UTC (rev 8399) +++ trunk/xsl/manpages/table.xsl 2009-04-08 07:44:54 UTC (rev 8400) @@ -600,7 +600,7 @@ <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"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |