mirror of
https://github.com/php/doc-pt_br.git
synced 2026-03-24 07:02:09 +01:00
147 lines
4.6 KiB
XML
147 lines
4.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- EN-Revision: 18aa2012f6fa1e5b09733147e02911d16e06d4a1 Maintainer: leonardolara Status: ready --><!-- CREDITS: fernandowobeto,leonardolara -->
|
|
<refentry xml:id="function.xml-set-notation-decl-handler" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
<refnamediv>
|
|
<refname>xml_set_notation_decl_handler</refname>
|
|
<refpurpose>Configura manipulador de declaração de notação</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>true</type><methodname>xml_set_notation_decl_handler</methodname>
|
|
<methodparam><type>XMLParser</type><parameter>parser</parameter></methodparam>
|
|
<methodparam><type class="union"><type>callable</type><type>string</type><type>null</type></type><parameter>handler</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Define a função do manipulador de declaração de notação para o analisador XML
|
|
<parameter>parser</parameter>.
|
|
</para>
|
|
<para>
|
|
Uma declaração de notação é parte do DTD do documento e tem o
|
|
seguinte formato:
|
|
<programlisting role="xml">
|
|
<![CDATA[
|
|
<!NOTATION <parameter>name</parameter>
|
|
{ <parameter>systemId</parameter> | <parameter>publicId</parameter>?>
|
|
]]>
|
|
</programlisting>
|
|
Veja <link xlink:href="&url.rec-xml;#Notations">seção 4.7 da especificação XML
|
|
1.0</link> para a definição de declarações de notação.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
&xml.parser.param;
|
|
<varlistentry>
|
|
<term><parameter>handler</parameter></term>
|
|
<listitem>
|
|
&xml.handler.description;
|
|
<para>
|
|
A assinatura do manipulador deve ser:
|
|
<methodsynopsis>
|
|
<type>void</type><methodname><replaceable>handler</replaceable></methodname>
|
|
<methodparam><type>XMLParser</type><parameter>parser</parameter></methodparam>
|
|
<methodparam><type>string</type><parameter>notation_name</parameter></methodparam>
|
|
<methodparam><type class="union"><type>string</type><type>false</type></type><parameter>base</parameter></methodparam>
|
|
<methodparam><type>string</type><parameter>system_id</parameter></methodparam>
|
|
<methodparam><type class="union"><type>string</type><type>false</type></type><parameter>public_id</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<variablelist>
|
|
&xml.handler.parser.param;
|
|
<varlistentry>
|
|
<term><parameter>notation_name</parameter></term>
|
|
<listitem>
|
|
<simpara>
|
|
Este é o nome da notação, conforme o
|
|
formato de notação descrito acima.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term>
|
|
<parameter>base</parameter>
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Esta é a base para resolver o identificador do sistema
|
|
(<literal>system_id</literal>) da declaração de notação.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>system_id</parameter></term>
|
|
<listitem>
|
|
<simpara>
|
|
Identificador do sistema da declaração de notação externa.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term>
|
|
<parameter>public_id</parameter>
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Identificador público da declaração de notação externa.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
&return.true.always;
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="changelog">
|
|
&reftitle.changelog;
|
|
<informaltable>
|
|
<tgroup cols="2">
|
|
<thead>
|
|
<row>
|
|
<entry>&Version;</entry>
|
|
<entry>&Description;</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
&xml.changelog.handler-param;
|
|
&xml.changelog.parser-param;
|
|
</tbody>
|
|
</tgroup>
|
|
</informaltable>
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|