]> git.stg.codes - stg.git/blob - doc/xslt/params/exsl.node.set.available.xml
Set output encoding to utf-8.
[stg.git] / doc / xslt / params / exsl.node.set.available.xml
1 <refentry xmlns="http://docbook.org/ns/docbook"
2           xmlns:xlink="http://www.w3.org/1999/xlink"
3           xmlns:xi="http://www.w3.org/2001/XInclude"
4           xmlns:exsl="http://exslt.org/common"
5           xmlns:src="http://nwalsh.com/xmlns/litprog/fragment"
6           xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
7           version="5.0" xml:id="exsl.node.set.available">
8 <refmeta>
9 <refentrytitle>exsl.node.set.available</refentrytitle>
10 <refmiscinfo class="other" otherclass="datatype">boolean</refmiscinfo>
11 </refmeta>
12 <refnamediv>
13 <refname>exsl.node.set.available</refname>
14 <refpurpose>Is the test function-available('exsl:node-set') true?</refpurpose>
15 </refnamediv>
16
17 <refsynopsisdiv>
18 <src:fragment xml:id="exsl.node.set.available.frag"><xsl:param name="exsl.node.set.available"> 
19   <xsl:choose>
20     <xsl:when exsl:foo="" xmlns:exsl="http://exslt.org/common"
21       test="function-available('exsl:node-set') or
22                        contains(system-property('xsl:vendor'),
23                          'Apache Software Foundation')">1</xsl:when>
24     <xsl:otherwise>0</xsl:otherwise>
25   </xsl:choose>
26 </xsl:param>
27 </src:fragment>
28 </refsynopsisdiv>
29
30 <refsection><info><title>Description</title></info>
31
32 <para>If non-zero,
33 then the exsl:node-set() function is available to be used in
34 the stylesheet.
35 If zero, then the function is not available.
36 This param automatically detects the presence of
37 the function and does not normally need to be set manually.</para>
38
39 <para>This param was created to handle a long-standing
40 bug in the Xalan processor that fails to detect the
41 function even though it is available.</para>
42
43 </refsection>
44 </refentry>