.. _functx_change-element-ns-deep: ============================= functx:change-element-ns-deep ============================= Muda o namespace de elementos XML e dos descendentes deles Descrição ~~~~~~~~~ A função functx:change-element-ns-deep muda o namespace dos elementos XML de $nodes para $newns. Ao contrário da functx:change-element-ns, ela muda também o namespace de todos os elementos descendentes. .. list-table:: :widths: 40 60 :header-rows: 1 * - **Parâmetros** - **Descrição** * - nodes:node() - os nós a alterar * - newns:string() - o novo namespace * - prefix:string() - o prefixo a usar para o novo namespace Exemplos ~~~~~~~~ Os exemplos abaixo usam este documento de entrada: .. code-block:: xml 557 xyz .. list-table:: :widths: 50 50 :header-rows: 1 * - **XPath** - **Resultado** * - functx:change-element-ns-deep($in-xml, 'http://foo','') - 557 xyz * - functx:change-element-ns-deep($in-xml, 'http://foo','foo') - 557 xyz Veja também ~~~~~~~~~~~ .. toctree:: :titlesonly: :glob: * :ref:`functx_change-element-ns`. * :ref:`functx_change-element-names-deep`.