mirror of
https://github.com/php/doc-es.git
synced 2026-03-26 08:22:08 +01:00
git-svn-id: https://svn.php.net/repository/phpdoc/es/trunk@325529 c90b9560-bf6c-de11-be94-00142212c4b1
150 lines
5.2 KiB
XML
150 lines
5.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 5faa7a6747bca628b3bdcc9f93aec5603b65581f Maintainer: carlos Status: ready -->
|
|
<refentry xmlns="http://docbook.org/ns/docbook"
|
|
xml:id="function.xml-set-notation-decl-handler"
|
|
xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
<refnamediv>
|
|
<refname>xml_set_notation_decl_handler</refname>
|
|
<refpurpose>Configura el manejador de declaraciones de notación</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>bool</type><methodname>xml_set_notation_decl_handler</methodname>
|
|
<methodparam><type>resource</type><parameter>parser</parameter></methodparam>
|
|
<methodparam><type>callable</type><parameter>handler</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Configura la función del manejador de declaraciones de notación (NOTATION) para el intérprete XML
|
|
<parameter>parser</parameter>.
|
|
</para>
|
|
<para>
|
|
Una declaración de notación es parte del DTD del documento y tiene el siguiente formato:
|
|
<programlisting role="xml">
|
|
<![CDATA[
|
|
<!NOTATION <parameter>name</parameter>
|
|
{ <parameter>systemId</parameter> | <parameter>publicId</parameter>?>
|
|
]]>
|
|
</programlisting>
|
|
Para la definición de declaraciones de notación ver <link xlink:href="&url.rec-xml;#Notations">sección 4.7 de las especificaciones XML 1.0</link> .
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>parser</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Identificador del recurso del intérprete XML para el que se va a configurar la función del manejador de declaración de notación.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>handler</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
<parameter>handler</parameter> es un string que contiene el nombre de una función que debe existir cuando <function>xml_parse</function> es llamado por <parameter>parser</parameter>.
|
|
</para>
|
|
<para>
|
|
La función llamada mediante <parameter>handler</parameter> debe aceptar cinco parámetros: <methodsynopsis>
|
|
<methodname><replaceable>handler</replaceable></methodname>
|
|
<methodparam><type>resource</type><parameter>parser</parameter></methodparam>
|
|
<methodparam><type>string</type><parameter>notation_name</parameter></methodparam>
|
|
<methodparam><type>string</type><parameter>base</parameter></methodparam>
|
|
<methodparam><type>string</type><parameter>system_id</parameter></methodparam>
|
|
<methodparam><type>string</type><parameter>public_id</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term>
|
|
<parameter>parser</parameter>
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
El primer parámetro, <replaceable>parser</replaceable>, hace referencia al intérprete XML que llama al manejador.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>notation_name</parameter></term>
|
|
<listitem>
|
|
<simpara>
|
|
Esto es el <parameter>name</parameter> de la notación, como se describió arriba en el formato de notación.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term>
|
|
<parameter>base</parameter>
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Esta es la base para resolver el identificador de sistema (<parameter>system_id</parameter>) de la declaración de notación. Actualmente este parámetro siempre se establecerá como una cadena vacia.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>system_id</parameter></term>
|
|
<listitem>
|
|
<simpara>
|
|
Identificador de sistema de la declaración de notación externa.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term>
|
|
<parameter>public_id</parameter>
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Identificador público de la declaración de notación externa.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
<para>
|
|
Si la función del manejador se configura como una cadena vacia, o &false;, el manejador en cuestión se deshabilita.
|
|
</para>
|
|
¬e.func-callback;
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
&return.success;
|
|
</para>
|
|
</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
|
|
-->
|