exsl.node.set.available.xml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. <refsynopsisdiv>
  17. <src:fragment xml:id="exsl.node.set.available.frag"><xsl:param name="exsl.node.set.available">
  18. <xsl:choose>
  19. <xsl:when exsl:foo="" xmlns:exsl="http://exslt.org/common"
  20. test="function-available('exsl:node-set') or
  21. contains(system-property('xsl:vendor'),
  22. 'Apache Software Foundation')">1</xsl:when>
  23. <xsl:otherwise>0</xsl:otherwise>
  24. </xsl:choose>
  25. </xsl:param>
  26. </src:fragment>
  27. </refsynopsisdiv>
  28. <refsection><info><title>Description</title></info>
  29. <para>If non-zero,
  30. then the exsl:node-set() function is available to be used in
  31. the stylesheet.
  32. If zero, then the function is not available.
  33. This param automatically detects the presence of
  34. the function and does not normally need to be set manually.</para>
  35. <para>This param was created to handle a long-standing
  36. bug in the Xalan processor that fails to detect the
  37. function even though it is available.</para>
  38. </refsection>
  39. </refentry>