<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/fn.functionAvailable.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>fn.functionAvailable</api:function-name><api:suggest>fn.functionavailable</api:suggest><api:suggest>fn</api:suggest><api:suggest>functionavailable</api:suggest><api:function-link mode="xquery" fullname="fn:function-available">/apidoc/8.0/fn:function-available.xml</api:function-link><api:function mode="javascript" name="functionAvailable" type="builtin" lib="fn" category="XSLTBuiltins" bucket="W3C-Standard Functions" hidden="false" prefix="fn" namespace="http://www.w3.org/2005/xpath-functions" fullname="fn.functionAvailable"><api:summary>
  Returns true if and only if there is a function whose name and optionally
  arity matches the value of the $function-name and the optional $arity
  arguments.  This
   is an XSLT function, and it is available in both XSLT, XQuery 1.0-ml,
   and JavaScript.
</api:summary><api:params><api:param name="function-name" type="xs:string" optional="false"><api:param-description>
  The $function-name is a string containing a lexical QName. It may be a name
  of a builtin-type, type imported using xsl:import-schema, or an extension
  type. This parameter is mandatory. The lexical QName is expanded using the
  namespace declarations in scope for the expression. If the lexical QName
  is unprefixed, then the standard function namespace is used in the expanded
  QName.
  </api:param-description><api:param-name>function-name</api:param-name><api:param-type>String</api:param-type></api:param><api:param name="arity" type="xs:integer" optional="true"><api:param-description>
  If $arity parameter is present, then the function returns true if and only if
  the function specified by the first argument has a signature that takes $arity
  number of arguments.
  </api:param-description><api:param-name>arity</api:param-name><api:param-type>Number</api:param-type></api:param></api:params><api:return>Boolean</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
fn.functionAvailable("fn:doc")
=&gt;
true
</pre>
</api:example></api:function></api:function-page>