.. _functx_scheme-from-uri: ====================== functx:scheme-from-uri ====================== Devolve o esquema de um URI Descrição ~~~~~~~~~ A função functx:scheme-from-uri devolve a parte de esquema de um URI, por exemplo http ou ftp, que vem antes dos dois-pontos. Se não houver esquema (porque o URI é relativo), devolve uma string vazia. .. list-table:: :widths: 40 60 :header-rows: 1 * - **Parâmetros** - **Descrição** * - uri:string() - o URI Exemplos ~~~~~~~~ .. list-table:: :widths: 50 50 :header-rows: 1 * - **XPath** - **Resultado** * - functx:scheme-from-uri('http://www.datypic.com') - http * - functx:scheme-from-uri('ftp://ftp.datypic.com') - ftp * - functx:scheme-from-uri('ftp.datypic.com') - zero-length string * - functx:scheme-from-uri('www.datypic.com') - zero-length string * - functx:scheme-from-uri('prod.html') - zero-length string Veja também ~~~~~~~~~~~ .. toctree:: :titlesonly: :glob: * :ref:`functx_is-absolute-uri`. * :ref:`functx_fragment-from-uri`.