From f6b830291ec1e38c83b4317ebd9a1f2a906e15fd Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Sun, 23 Dec 2007 21:56:37 +0000 Subject: [PATCH] Rename files # *no* content change git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@248875 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../functions/xsl-xsltprocessor-construct.xml | 66 -------- .../xsl-xsltprocessor-get-parameter.xml | 83 ---------- .../xsl-xsltprocessor-has-exslt-support.xml | 72 --------- .../xsl-xsltprocessor-import-stylesheet.xml | 64 -------- ...l-xsltprocessor-register-php-functions.xml | 141 ----------------- .../xsl-xsltprocessor-remove-parameter.xml | 83 ---------- .../xsl-xsltprocessor-set-parameter.xml | 145 ------------------ .../xsl-xsltprocessor-transform-to-doc.xml | 109 ------------- .../xsl-xsltprocessor-transform-to-uri.xml | 110 ------------- .../xsl-xsltprocessor-transform-to-xml.xml | 111 -------------- 10 files changed, 984 deletions(-) delete mode 100644 reference/xsl/functions/xsl-xsltprocessor-construct.xml delete mode 100644 reference/xsl/functions/xsl-xsltprocessor-get-parameter.xml delete mode 100644 reference/xsl/functions/xsl-xsltprocessor-has-exslt-support.xml delete mode 100644 reference/xsl/functions/xsl-xsltprocessor-import-stylesheet.xml delete mode 100644 reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml delete mode 100644 reference/xsl/functions/xsl-xsltprocessor-remove-parameter.xml delete mode 100644 reference/xsl/functions/xsl-xsltprocessor-set-parameter.xml delete mode 100644 reference/xsl/functions/xsl-xsltprocessor-transform-to-doc.xml delete mode 100644 reference/xsl/functions/xsl-xsltprocessor-transform-to-uri.xml delete mode 100644 reference/xsl/functions/xsl-xsltprocessor-transform-to-xml.xml diff --git a/reference/xsl/functions/xsl-xsltprocessor-construct.xml b/reference/xsl/functions/xsl-xsltprocessor-construct.xml deleted file mode 100644 index 0148a9bc52..0000000000 --- a/reference/xsl/functions/xsl-xsltprocessor-construct.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - XSLTProcessor::__construct - Creates a new XSLTProcessor object - - - &reftitle.description; - - XSLTProcessor - - __construct - - - - - Creates a new XSLTProcessor object. - - - - &reftitle.examples; - - - Creating an <classname>XSLTProcessor</classname> - -load($xsl_filename); -$xsl->importStyleSheet($doc); - -$doc->load($xml_filename); -echo $xsl->transformToXML($doc); - -?> -]]> - - - - - - - diff --git a/reference/xsl/functions/xsl-xsltprocessor-get-parameter.xml b/reference/xsl/functions/xsl-xsltprocessor-get-parameter.xml deleted file mode 100644 index d6b4dabc71..0000000000 --- a/reference/xsl/functions/xsl-xsltprocessor-get-parameter.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - - XSLTProcessor::getParameter - Get value of a parameter - - - &reftitle.description; - - XSLTProcessor - - string - getParameter - stringnamespaceURI - stringlocalName - - - - Gets a parameter if previously set by . - - - - &reftitle.parameters; - - - - namespaceURI - - - The namespace URI of the XSLT parameter. - - - - - localName - - - The local name of the XSLT parameter. - - - - - - - - &reftitle.returnvalues; - - The value of the parameter or &null; if it's not set. - - - - &reftitle.seealso; - - - - - - - - - - diff --git a/reference/xsl/functions/xsl-xsltprocessor-has-exslt-support.xml b/reference/xsl/functions/xsl-xsltprocessor-has-exslt-support.xml deleted file mode 100644 index df8ad4d26c..0000000000 --- a/reference/xsl/functions/xsl-xsltprocessor-has-exslt-support.xml +++ /dev/null @@ -1,72 +0,0 @@ - - - - - XSLTProcessor::hasExsltSupport - Determine if PHP has EXSLT support - - - &reftitle.description; - - XSLTProcessor - - bool - hasExsltSupport - - - - - This method determine if PHP was built with the EXSLT library. - - - - &reftitle.returnvalues; - - &return.success; - - - - &reftitle.examples; - - - Testing EXSLT support - -hasExsltSupport()) { - die('EXSLT support not available'); -} - -// do EXSLT stuff here .. - -?> -]]> - - - - - - - diff --git a/reference/xsl/functions/xsl-xsltprocessor-import-stylesheet.xml b/reference/xsl/functions/xsl-xsltprocessor-import-stylesheet.xml deleted file mode 100644 index 973a6fab20..0000000000 --- a/reference/xsl/functions/xsl-xsltprocessor-import-stylesheet.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - XSLTProcessor::importStylesheet - Import stylesheet - - - &reftitle.description; - - XSLTProcessor - - voidimportStylesheet - DOMDocumentstylesheet - - - - This method import the stylesheet into the - XSLTProcessor for transformations. - - - - &reftitle.parameters; - - - - stylesheet - - - The imported style sheet as a DOMDocument object. - - - - - - - - &reftitle.returnvalues; - - &return.void; - - - - - diff --git a/reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml b/reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml deleted file mode 100644 index d80269c3e7..0000000000 --- a/reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml +++ /dev/null @@ -1,141 +0,0 @@ - - - - - XSLTProcessor::registerPHPFunctions - Enables the ability to use PHP functions as XSLT functions - - - &reftitle.description; - - XSLTProcessor - - void - registerPHPFunctions - mixedrestrict - - - - This method enables the ability to use PHP functions as XSLT functions - within XSL stylesheets. - - - - &reftitle.parameters; - - - - restrict - - - Use this parameter to only allow certain functions to be called from - XSLT. - - - This parameter can be either a string (a function name) or an array of - functions. - - - - - - - - &reftitle.returnvalues; - - &return.void; - - - - &reftitle.examples; - - - Simple PHP Function call from a stylesheet - - - bob - - - joe - - -EOB; -$xsl = << - - - - -

Users

- - - - -
- -
- -
-
-EOB; -$xmldoc = DOMDocument::loadXML($xml); -$xsldoc = DOMDocument::loadXML($xsl); - -$proc = new XSLTProcessor(); -$proc->registerPHPFunctions(); -$proc->importStyleSheet($xsldoc); -echo $proc->transformToXML($xmldoc); -?>]]>
-
-
-
- - &reftitle.changelog; - - - - - - &Version; - &Description; - - - - - 5.1.0 - - The restrict parameter was added. - - - - - - - -
- - diff --git a/reference/xsl/functions/xsl-xsltprocessor-remove-parameter.xml b/reference/xsl/functions/xsl-xsltprocessor-remove-parameter.xml deleted file mode 100644 index e4996b6d68..0000000000 --- a/reference/xsl/functions/xsl-xsltprocessor-remove-parameter.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - - XSLTProcessor::removeParameter - Remove parameter - - - &reftitle.description; - - XSLTProcessor - - bool - removeParameter - stringnamespaceURI - stringlocalName - - - - Removes a parameter, if set. This will make the processor use the - default value for the parameter as specified in the stylesheet. - - - - &reftitle.parameters; - - - - namespaceURI - - - The namespace URI of the XSLT parameter. - - - - - localName - - - The local name of the XSLT parameter. - - - - - - - - &reftitle.returnvalues; - - &return.success; - - - - &reftitle.seealso; - - - - - - - - - - diff --git a/reference/xsl/functions/xsl-xsltprocessor-set-parameter.xml b/reference/xsl/functions/xsl-xsltprocessor-set-parameter.xml deleted file mode 100644 index a20b2ba3f5..0000000000 --- a/reference/xsl/functions/xsl-xsltprocessor-set-parameter.xml +++ /dev/null @@ -1,145 +0,0 @@ - - - - - XSLTProcessor::setParameter - Set value for a parameter - - - &reftitle.description; - - XSLTProcessor - - boolsetParameter - stringnamespace - stringname - stringvalue - - - - XSLTProcessor - - boolsetParameter - stringnamespace - arrayoptions - - - - Sets the value of one or more parameters to be used in subsequent - transformations with XSLTProcessor. If the - parameter doesn't exist in the stylesheet it will be ignored. - - - - &reftitle.parameters; - - - - namespace - - - The namespace URI of the XSLT parameter. - - - - - name - - - The local name of the XSLT parameter. - - - - - value - - - The new value of the XSLT parameter. - - - - - options - - - An array of name => value pairs. This syntax is - available since PHP 5.1.0. - - - - - - - - &reftitle.returnvalues; - - &return.success; - - - - &reftitle.examples; - - - Changing the owner before the transformation - - 'marc', - 'Olivier Parmentier' => 'olivier' -); - -$xsl = new DOMDocument; -$xsl->load('collection.xsl'); - -// Configure the transformer -$proc = new XSLTProcessor; -$proc->importStyleSheet($xsl); // attach the xsl rules - -foreach ($collections as $name => $file) { - // Load the XML source - $xml = new DOMDocument; - $xml->load('collection_' . $file . '.xml'); - - $proc->setParameter('', 'owner', $name); - $proc->transformToURI($xml, 'file:///tmp/' . $file . '.html'); -} - -?> -]]> - - - - - - &reftitle.seealso; - - - - - - - - - - diff --git a/reference/xsl/functions/xsl-xsltprocessor-transform-to-doc.xml b/reference/xsl/functions/xsl-xsltprocessor-transform-to-doc.xml deleted file mode 100644 index db82efb67d..0000000000 --- a/reference/xsl/functions/xsl-xsltprocessor-transform-to-doc.xml +++ /dev/null @@ -1,109 +0,0 @@ - - - - - XSLTProcessor::transformToDoc - Transform to a DOMDocument - - - &reftitle.description; - - XSLTProcessor - - DOMDocument - transformToDoc - DOMNodedoc - - - - Transforms the source node to a DOMDocument applying - the stylesheet given by the method. - - - - &reftitle.parameters; - - - - doc - - - The node to be transformed. - - - - - - - - &reftitle.returnvalues; - - The resulting DOMDocument or &false; on error. - - - - &reftitle.examples; - - - Transforming to a DOMDocument - -load('collection.xml'); - -$xsl = new DOMDocument; -$xsl->load('collection.xsl'); - -// Configure the transformer -$proc = new XSLTProcessor; -$proc->importStyleSheet($xsl); // attach the xsl rules - -echo trim($proc->transformToDoc($xml)->firstChild->wholeText); - -?> -]]> - - &example.outputs; - - - - - - - - &reftitle.seealso; - - - - - - - - - - diff --git a/reference/xsl/functions/xsl-xsltprocessor-transform-to-uri.xml b/reference/xsl/functions/xsl-xsltprocessor-transform-to-uri.xml deleted file mode 100644 index 58eb976c39..0000000000 --- a/reference/xsl/functions/xsl-xsltprocessor-transform-to-uri.xml +++ /dev/null @@ -1,110 +0,0 @@ - - - - - XSLTProcessor::transformToURI - Transform to URI - - - &reftitle.description; - - XSLTProcessor - - int - transformToURI - DOMDocumentdoc - stringuri - - - - Transforms the source node to an URI applying the stylesheet given by the - method. - - - - &reftitle.parameters; - - - - doc - - - The transformed document. - - - - - uri - - - - - - - - - - &reftitle.returnvalues; - - Returns the number of bytes written or &false; if an error occurred. - - - - &reftitle.examples; - - - Transforming to a HTML file - -load('collection.xml'); - -$xsl = new DOMDocument; -$xsl->load('collection.xsl'); - -// Configure the transformer -$proc = new XSLTProcessor; -$proc->importStyleSheet($xsl); // attach the xsl rules - -$proc->transformToURI($xml, 'file:///tmp/out.html'); - -?> -]]> - - - - - - &reftitle.seealso; - - - - - - - - - - diff --git a/reference/xsl/functions/xsl-xsltprocessor-transform-to-xml.xml b/reference/xsl/functions/xsl-xsltprocessor-transform-to-xml.xml deleted file mode 100644 index 3fbee29ed9..0000000000 --- a/reference/xsl/functions/xsl-xsltprocessor-transform-to-xml.xml +++ /dev/null @@ -1,111 +0,0 @@ - - - - - XSLTProcessor::transformToXML - Transform to XML - - - &reftitle.description; - - XSLTProcessor - - string - transformToXML - DOMDocumentdoc - - - - Transforms the source node to a string applying the stylesheet given by - the method. - - - - &reftitle.parameters; - - - - doc - - - The transformed document. - - - - - - - - &reftitle.returnvalues; - - The result of the transformation as a string or &false; on error. - - - - &reftitle.examples; - - - Transforming to a string - -load('collection.xml'); - -$xsl = new DOMDocument; -$xsl->load('collection.xsl'); - -// Configure the transformer -$proc = new XSLTProcessor; -$proc->importStyleSheet($xsl); // attach the xsl rules - -echo $proc->transformToXML($xml); - -?> -]]> - - &example.outputs; - -Fight for your mind

by Ben Harper - 1995


-

Electric Ladyland

by Jimi Hendrix - 1997


-]]> -
-
-
-
- - &reftitle.seealso; - - - - - - - -
- -