mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
better variable names in example
Based on old user note from Martin git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@335140 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
841526fd3a
commit
a66965db2e
1 changed files with 8 additions and 7 deletions
|
@ -37,14 +37,15 @@
|
|||
<![CDATA[
|
||||
<?php
|
||||
|
||||
$doc = new DOMDocument();
|
||||
$xsldoc = new DOMDocument();
|
||||
$xsldoc->load($xsl_filename);
|
||||
|
||||
$xmldoc = new DOMDocument();
|
||||
$xmldoc->load($xml_filename);
|
||||
|
||||
$xsl = new XSLTProcessor();
|
||||
|
||||
$doc->load($xsl_filename);
|
||||
$xsl->importStyleSheet($doc);
|
||||
|
||||
$doc->load($xml_filename);
|
||||
echo $xsl->transformToXML($doc);
|
||||
$xsl->importStyleSheet($xsldoc);
|
||||
echo $xsl->transformToXML($xmldoc);
|
||||
|
||||
?>
|
||||
]]>
|
||||
|
|
Loading…
Reference in a new issue