From b21dc48a672b369442b78f900745702c9c12ef08 Mon Sep 17 00:00:00 2001 From: Gina Peter Banyard Date: Wed, 7 Feb 2024 21:03:01 +0000 Subject: [PATCH] Sync xsl docs with EN --- reference/xsl/configure.xml | 6 +- reference/xsl/constants.xml | 35 ++++++------ reference/xsl/xsltprocessor.xml | 56 ++++++++----------- reference/xsl/xsltprocessor/construct.xml | 13 +---- reference/xsl/xsltprocessor/getparameter.xml | 18 +++--- .../xsl/xsltprocessor/getsecurityprefs.xml | 7 +-- .../xsl/xsltprocessor/hasexsltsupport.xml | 22 +++++--- .../xsl/xsltprocessor/importstylesheet.xml | 36 ++---------- .../xsltprocessor/registerphpfunctions.xml | 45 ++++----------- .../xsl/xsltprocessor/removeparameter.xml | 20 +++---- reference/xsl/xsltprocessor/setparameter.xml | 16 +++--- reference/xsl/xsltprocessor/setprofiling.xml | 11 ++-- .../xsl/xsltprocessor/setsecurityprefs.xml | 13 ++--- .../xsl/xsltprocessor/transformtodoc.xml | 35 ++++++++---- .../xsl/xsltprocessor/transformtouri.xml | 18 +++--- .../xsl/xsltprocessor/transformtoxml.xml | 16 +++--- 16 files changed, 150 insertions(+), 217 deletions(-) diff --git a/reference/xsl/configure.xml b/reference/xsl/configure.xml index fc0fb9b7a..158d397e6 100644 --- a/reference/xsl/configure.xml +++ b/reference/xsl/configure.xml @@ -1,10 +1,10 @@ - - + +
&reftitle.install; - PHP 5 incluye la extensión XSL por defecto y puede ser activada añadiendo + PHP incluye la extensión XSL por defecto y puede ser activada añadiendo el argumento en la línea de configuración. DIR es el directorio de instalación de libxslt. diff --git a/reference/xsl/constants.xml b/reference/xsl/constants.xml index e2b90459a..304c1d1f5 100644 --- a/reference/xsl/constants.xml +++ b/reference/xsl/constants.xml @@ -1,6 +1,5 @@ - - + &reftitle.constants; @@ -9,7 +8,7 @@ XSL_CLONE_AUTO - (integer) + (int) @@ -19,7 +18,7 @@ XSL_CLONE_NEVER - (integer) + (int) @@ -29,7 +28,7 @@ XSL_CLONE_ALWAYS - (integer) + (int) @@ -39,11 +38,11 @@ LIBXSLT_VERSION - (integer) + (int) - versión libxslt como 10117. Disponible a partir de PHP 5.1.2. + versión libxslt como 10117. @@ -54,18 +53,18 @@ - versión de libxslt como la 1.1.17. Disponible a partir de PHP 5.1.2. + versión de libxslt como la 1.1.17. LIBEXSLT_VERSION - (integer) + (int) - versión de libexslt como la 813. Disponible a partir de PHP 5.1.2. + versión de libexslt como la 813. @@ -76,14 +75,14 @@ - versión de libexslt como la 1.1.17. Disponible a partir de PHP 5.1.2. + versión de libexslt como la 1.1.17. XSL_SECPREF_NONE - (integer) + (int) @@ -94,7 +93,7 @@ XSL_SECPREF_READ_FILE - (integer) + (int) @@ -105,7 +104,7 @@ XSL_SECPREF_WRITE_FILE - (integer) + (int) @@ -116,7 +115,7 @@ XSL_SECPREF_CREATE_DIRECTORY - (integer) + (int) @@ -127,7 +126,7 @@ XSL_SECPREF_READ_NETWORK - (integer) + (int) @@ -138,7 +137,7 @@ XSL_SECPREF_WRITE_NETWORK - (integer) + (int) @@ -149,7 +148,7 @@ XSL_SECPREF_DEFAULT - (integer) + (int) diff --git a/reference/xsl/xsltprocessor.xml b/reference/xsl/xsltprocessor.xml index 6f7f57fb8..96a7b686d 100644 --- a/reference/xsl/xsltprocessor.xml +++ b/reference/xsl/xsltprocessor.xml @@ -1,52 +1,45 @@ - - + - - + Clase XSLTProcessor XSLTProcessor - + - - + +
&reftitle.intro; - + - +
- - + +
&reftitle.classsynopsis; - - - - XSLTProcessor - - - - - XSLTProcessor - - - - + + + + + XSLTProcessor + + &Methods; - + + + - - + +
- +
- + &reference.xsl.entities.xsltprocessor; - +
- - diff --git a/reference/xsl/xsltprocessor/construct.xml b/reference/xsl/xsltprocessor/construct.xml index 771888e91..24ba1d68d 100644 --- a/reference/xsl/xsltprocessor/construct.xml +++ b/reference/xsl/xsltprocessor/construct.xml @@ -1,6 +1,5 @@ - - + @@ -9,7 +8,7 @@ &reftitle.description; - + XSLTProcessor::__construct @@ -23,13 +22,6 @@ &no.function.parameters; - - &reftitle.returnvalues; - - &return.void; - - - &reftitle.examples; @@ -56,7 +48,6 @@ echo $xsl->transformToXML($xmldoc); - - + - XSLTProcessor::getParameter @@ -10,11 +8,10 @@ &reftitle.description; - - string - XSLTProcessor::getParameter - stringnamespaceURI - stringlocalName + + public stringfalseXSLTProcessor::getParameter + stringnamespace + stringname Obtiene un parámetro si ha sido previamente establecido por @@ -26,7 +23,7 @@ - namespaceURI + namespace La URI del namespace del parámetro XSLT. @@ -34,7 +31,7 @@ - localName + name El nombre local del parámetro XSLT. @@ -60,7 +57,6 @@ - - + - XSLTProcessor::getSecurityPrefs @@ -11,7 +9,7 @@ &reftitle.description; - + public intXSLTProcessor::getSecurityPrefs @@ -36,7 +34,6 @@ - - + + XSLTProcessor::hasExsltSupport Determina si PHP tiene soporte para EXSLT + &reftitle.description; - - bool - XSLTProcessor::hasExsltSupport + + public boolXSLTProcessor::hasExsltSupport - Este método determina si PHP se compiló con la librería EXSLT. + + + &reftitle.parameters; + &no.function.parameters; + + &reftitle.returnvalues; &return.success; + &reftitle.examples; @@ -41,13 +48,12 @@ if (!$proc->hasExsltSupport()) { // aquí las líneas de código con EXSLT.. ?> -]]> +]]> - - + + XSLTProcessor::importStylesheet @@ -8,13 +8,12 @@ &reftitle.description; - - public - boolXSLTProcessor::importStylesheet + + public boolXSLTProcessor::importStylesheet objectstylesheet - Este método importa la hoja de estilos a + Este método importa la hoja de estilos a XSLTProcessor para realizar transformaciones. @@ -40,32 +39,7 @@ &return.void; - - &reftitle.changelog; - - - - - - &Version; - &Description; - - - - - 5.2.8 - - Acepta SimpleXMLElement de nuevo; no funcionaba - desde PHP 5.2.6. - - - - - - - - - + + XSLTProcessor::registerPHPFunctions @@ -8,10 +8,9 @@ &reftitle.description; - - void - XSLTProcessor::registerPHPFunctions - mixedrestrict + + public voidXSLTProcessor::registerPHPFunctions + arraystringnullfunctions&null; Este método activa la capacidad de usar funciones PHP como funciones @@ -23,7 +22,7 @@ - restrict + functions Usar este parámetro para acceder únicamente a ciertas funciones a ser @@ -62,7 +61,7 @@ $xml = << - @@ -81,8 +80,10 @@ $xsl = << EOB; -$xmldoc = DOMDocument::loadXML($xml); -$xsldoc = DOMDocument::loadXML($xsl); +$xmldoc = new DOMDocument(); +$xmldoc->loadXML($xml); +$xsldoc = new DOMDocument(); +$xsldoc->loadXML($xsl); $proc = new XSLTProcessor(); $proc->registerPHPFunctions(); @@ -92,31 +93,7 @@ echo $proc->transformToXML($xmldoc); - - &reftitle.changelog; - - - - - - &Version; - &Description; - - - - - 5.1.0 - - Se añadió el parámetro restrict. - - - - - - - - - + + XSLTProcessor::removeParameter @@ -8,15 +8,14 @@ &reftitle.description; - - bool - XSLTProcessor::removeParameter - stringnamespaceURI - stringlocalName + + public boolXSLTProcessor::removeParameter + stringnamespace + stringname Elimina un parámetro, si ya existía. Esto hará que el procesador use - el valor por defecto para el parámetro como está especificado en la + el valor por defecto para el parámetro como está especificado en la hoja de estilos. @@ -25,7 +24,7 @@ - namespaceURI + namespace La URI del namespace para el parámetro XSLT. @@ -33,7 +32,7 @@ - localName + name Nombre local del parámetro XSLT. @@ -59,7 +58,6 @@ - - + + XSLTProcessor::setParameter @@ -8,14 +8,14 @@ &reftitle.description; - - boolXSLTProcessor::setParameter + + public boolXSLTProcessor::setParameter stringnamespace stringname stringvalue - - boolXSLTProcessor::setParameter + + public boolXSLTProcessor::setParameter stringnamespace arrayoptions @@ -57,8 +57,7 @@ options - Un array de parejas nombre => valor. Esta sintaxis - está disponible desde PHP 5.1.0. + Un array de parejas nombre => valor.
@@ -117,7 +116,6 @@ foreach ($collections as $name => $file) { - + XSLTProcessor::setProfiling @@ -8,9 +8,9 @@ &reftitle.description; - - boolXSLTProcessor::setProfiling - stringfilename + + public trueXSLTProcessor::setProfiling + stringnullfilename Establece el nombre del fichero de salida para la información @@ -37,7 +37,7 @@ &reftitle.returnvalues; - &return.success; + &return.true.always; @@ -85,7 +85,6 @@ number match name mode Calls Tot 100us Avg - - + - XSLTProcessor::setSecurityPrefs @@ -11,9 +9,9 @@ &reftitle.description; - - public int XSLTProcessor::setSecurityPrefs - intsecurityPrefs + + public intXSLTProcessor::setSecurityPrefs + intpreferences Establece las preferencias de seguridad. @@ -25,7 +23,7 @@ - securityPrefs + preferences Las nuevas preferencias de seguridad. Las siguientes constantes pueden ser ORed: @@ -50,7 +48,6 @@ - - + + XSLTProcessor::transformToDoc - Transforma en un DOMDocument + Transforma en un documento &reftitle.description; - - DOMDocument - XSLTProcessor::transformToDoc - DOMNodedoc + + public objectfalseXSLTProcessor::transformToDoc + objectdocument + stringnullreturnClass&null; - Transforma el nodo origen en un DOMDocument aplicando + Transforma el nodo origen en un documento (e.g. DOMDocument) aplicando las hojas de estilo dadas por el método XSLTProcessor::importStylesheet. @@ -24,10 +24,22 @@ - doc + document - El nodo a transformar. + The DOMDocument or SimpleXMLElement or libxml-compatible + object to be transformed. + + + + + returnClass + + + This optional parameter may be used so that + XSLTProcessor::transformToDoc + will return an object of the specified class. + That class should either extend or be the same class as document's class. @@ -37,7 +49,7 @@ &reftitle.returnvalues; - El DOMDocument resultante o &false; en caso de error. + El documento resultante o &false; en caso de error. @@ -84,7 +96,6 @@ Hey! Welcome to Nicolas Eliaszewicz's sweet CD collection! - - + + XSLTProcessor::transformToUri @@ -8,10 +8,9 @@ &reftitle.description; - - int - XSLTProcessor::transformToURI - DOMDocumentdoc + + public intXSLTProcessor::transformToUri + objectdocument stringuri @@ -24,10 +23,12 @@ - doc + document El documento a transformar. + El objeto DOMDocument or SimpleXMLElement para + ser transformado. @@ -35,7 +36,7 @@ uri - Devuelve la ubicación URI para la transformación. + Devuelve la ubicación URI para la transformación.
@@ -86,7 +87,6 @@ $proc->transformToURI($xml, 'file:///tmp/out.html'); - - + + XSLTProcessor::transformToXml @@ -8,10 +8,9 @@ &reftitle.description; - - string - XSLTProcessor::transformToXml - objectdoc + + public stringnullfalseXSLTProcessor::transformToXml + objectdocument Transforma el nodo origen a un string aplicando la hoja de estilos dada @@ -23,10 +22,10 @@ - doc + document - El objeto DOMDocument o SimpleXMLElement para + El objeto DOMDocument or SimpleXMLElement para ser transformado. @@ -87,7 +86,6 @@ Hey! Welcome to Nicolas Eliaszewicz's sweet CD collection! -