<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet href="../../make-menu.xsl" type="text/xsl"?><html>
   <head>
      <this-is section="functions" page="intro" subpage="function-available"/>
      <!--
           Generated at 2010-10-29T18:20:48.427+01:00--><title>Saxonica: XSLT and XQuery Processing: function-available</title>
      <meta name="coverage" content="Worldwide"/>
      <meta name="copyright" content="Copyright Saxonica Ltd"/>
      <meta name="title" content="Saxonica: XSLT and XQuery Processing: function-available"/>
      <meta name="robots" content="noindex,nofollow"/>
      <link rel="stylesheet" href="../../saxondocs.css" type="text/css"/>
   </head>
   <body class="main">
      <h1>function-available</h1>
      <p class="subhead">function-available($function as xs:string) &#8594; xs:boolean</p>
      <p>Determines whether a function with a given name (regardless of arity)
               is available in the context.</p>
      <table>
         <tr>
            <td width="470" align="left" colspan="4" style="border-top:solid 1px #3D5B96; ">
               <p>
                     <i>Arguments</i>
                  </p>
            </td>
         </tr>
         <tr>
            <td width="40">
               <p> </p>
            </td>
            <td width="80" valign="top">
               <p>$function</p>
            </td>
            <td valign="top" width="150">
               <p>xs:string</p>
            </td>
            <td valign="top" width="200">
               <p>The name of the requested function, as a lexical QName</p>
            </td>
         </tr>
         <tr>
            <td colspan="2"
                style="border-top:solid 1px #3D5B96; border-bottom:solid 1px #3D5B96;">
               <p>
                     <i>Result</i>
                  </p>
            </td>
            <td style="border-top:solid 1px #3D5B96; border-bottom:solid 1px #3D5B96;"
                colspan="2">
               <p>xs:boolean</p>
            </td>
         </tr>
      </table>
      <p class="subhead">function-available($function as xs:string, $arity as xs:integer) &#8594; xs:boolean</p>
      <p>Determines whether a function with the given name and arity is available in the context.</p>
      <table>
         <tr>
            <td width="470" align="left" colspan="4" style="border-top:solid 1px #3D5B96; ">
               <p>
                     <i>Arguments</i>
                  </p>
            </td>
         </tr>
         <tr>
            <td width="40">
               <p> </p>
            </td>
            <td width="80" valign="top">
               <p>$function</p>
            </td>
            <td valign="top" width="150">
               <p>xs:string</p>
            </td>
            <td valign="top" width="200">
               <p>The name of the requested function, as a lexical QName</p>
            </td>
         </tr>
         <tr>
            <td width="40">
               <p> </p>
            </td>
            <td width="80" valign="top">
               <p>$arity</p>
            </td>
            <td valign="top" width="150">
               <p>xs:integer</p>
            </td>
            <td valign="top" width="200">
               <p>The arity of the requested function (number of arguments)</p>
            </td>
         </tr>
         <tr>
            <td colspan="2"
                style="border-top:solid 1px #3D5B96; border-bottom:solid 1px #3D5B96;">
               <p>
                     <i>Result</i>
                  </p>
            </td>
            <td style="border-top:solid 1px #3D5B96; border-bottom:solid 1px #3D5B96;"
                colspan="2">
               <p>xs:boolean</p>
            </td>
         </tr>
      </table>
      <p class="subhead">Links to W3C specifications</p>
      <p>Namespace: http://www.w3.org/1999/XSL/Transform</p>
      <p>Applies to: XSLT 2.0 and later versions</p>
      <p>
            <a href="http://www.w3.org/TR/xslt20/#function-function-available"
            class="bodylink">XSLT 2.0 Specification</a>
         </p>
      <p>
            <a href="http://www.w3.org/TR/xslt-21/#function-function-available"
            class="bodylink">XSLT 2.1 Specification</a>
         </p>
      <p class="subhead">Notes on the Saxon implementation</p>
      <p>The function is fully implemented according to the W3C specifications.</p>
      <table width="100%">
         <tr>
            <td>
               <p align="right"><a class="nav" href="function-name.xml">Next</a></p>
            </td>
         </tr>
      </table>
   </body>
</html>