.. _function-available: ================== function-available ================== Se uma função é suportada Descrição ~~~~~~~~~ A função fn:function-available devolve um valor booleano que diz se a implementação suporta uma função. Todas as implementações suportam as funções nativas, mas podem suportar também funções de extensão. Observação: é uma função só do XSLT; não existe em XQuery nem em XPath puro. .. list-table:: :widths: 40 60 :header-rows: 1 * - **Parâmetros** - **Descrição** * - function-name:string() - o QName léxico da função, como functx:sort * - arity:integer() - o número de argumentos; opcional Exemplos ~~~~~~~~ .. list-table:: :widths: 50 50 :header-rows: 1 * - **XPath** - **Resultado** * - function-available('substring') - true * - function-available('functx:sort') - true * - function-available('mi:first-upper') - true * - function-available('foo') - false