vrana Fri Feb 4 06:25:35 2005 EDT
Modified files:
/phpdoc/en/reference/xsl/functions xsl-xsltprocessor-construct.xml
Log:
A bit more useful example
http://cvs.php.net/diff.php/phpdoc/en/reference/xsl/functions/xsl-xsltprocessor-construct.xml?r1=1.2&r2=1.3&ty=u
Index: phpdoc/en/reference/xsl/functions/xsl-xsltprocessor-construct.xml
diff -u phpdoc/en/reference/xsl/functions/xsl-xsltprocessor-construct.xml:1.2
phpdoc/en/reference/xsl/functions/xsl-xsltprocessor-construct.xml:1.3
--- phpdoc/en/reference/xsl/functions/xsl-xsltprocessor-construct.xml:1.2
Fri Feb 4 05:45:48 2005
+++ phpdoc/en/reference/xsl/functions/xsl-xsltprocessor-construct.xml Fri Feb
4 06:25:35 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<refentry id="function.xsl-xsltprocessor-construct">
<refnamediv>
<refname>XSLTProcessor->__construct()</refname>
@@ -28,6 +28,8 @@
<?php
$xsl = new XSLTProcessor();
+$xsl->importStyleSheet(DOMDocument::load($xsl_filename));
+echo $xsl->transformToXML(DOMDocument::load($xml_filename));
?>
]]>