.. _functx_has-mixed-content: ======================== functx:has-mixed-content ======================== Se um elemento tem conteúdo misto Descrição ~~~~~~~~~ A função functx:has-mixed-content devolve true se o elemento tiver conteúdo misto, ou seja, elementos filhos e também texto além de espaço em branco. Tecnicamente, quando não há schema, os espaços e quebras de linha usados para formatar o XML contam como nós de texto. Por conveniência, porém, esta função os ignora. .. list-table:: :widths: 40 60 :header-rows: 1 * - **Parâmetros** - **Descrição** * - element:element() - o elemento XML a testar Exemplos ~~~~~~~~ Os exemplos abaixo usam este documento de entrada: .. code-block:: xml xml xml mixed xml xml .. list-table:: :widths: 50 50 :header-rows: 1 * - **XPath** - **Resultado** * - functx:has-mixed-content($in-xml/a) - false * - functx:has-mixed-content($in-xml/b) - false * - functx:has-mixed-content($in-xml/c) - false * - functx:has-mixed-content($in-xml/d) - false * - functx:has-mixed-content($in-xml/e) - false * - functx:has-mixed-content($in-xml/f) - true * - functx:has-mixed-content($in-xml/g) - false Veja também ~~~~~~~~~~~ .. toctree:: :titlesonly: :glob: * :ref:`functx_has-empty-content`. * :ref:`functx_has-element-only-content`. * :ref:`functx_has-simple-content`. * :ref:`functx_all-whitespace`.