cvs: phpdoc /en/reference/xsl/functions xsl-xsltprocessor-construct.xml

From: Date: Wed, 08 Mar 2006 03:02:33 +0000
Subject: cvs: phpdoc /en/reference/xsl/functions xsl-xsltprocessor-construct.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969372291@lists.php.net to get a copy of this message
takagi Wed Mar 8 03:02:33 2006 UTC Modified files: /phpdoc/en/reference/xsl/functions xsl-xsltprocessor-construct.xml Log: Example code causes E_STRICT warning (bug #36651) http://cvs.php.net/viewcvs.cgi/phpdoc/en/reference/xsl/functions/xsl-xsltprocessor-construct.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc/en/reference/xsl/functions/xsl-xsltprocessor-construct.xml diff -u phpdoc/en/reference/xsl/functions/xsl-xsltprocessor-construct.xml:1.3 phpdoc/en/reference/xsl/functions/xsl-xsltprocessor-construct.xml:1.4 --- phpdoc/en/reference/xsl/functions/xsl-xsltprocessor-construct.xml:1.3 Fri Feb 4 11:25:35 2005 +++ phpdoc/en/reference/xsl/functions/xsl-xsltprocessor-construct.xml Wed Mar 8 03:02:33 2006 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="function.xsl-xsltprocessor-construct"> <refnamediv> <refname>XSLTProcessor->__construct()</refname> @@ -27,9 +27,14 @@ <![CDATA[ <?php +$doc = new DOMDocument(); $xsl = new XSLTProcessor(); -$xsl->importStyleSheet(DOMDocument::load($xsl_filename)); -echo $xsl->transformToXML(DOMDocument::load($xml_filename)); + +$doc->load($xsl_filename); +$xsl->importStyleSheet($doc); + +$doc->load($xml_filename); +echo $xsl->transformToXML($doc); ?> ]]>

« previous php.doc (#969372291) next »