note 50504 added to function.xsl-xsltprocessor-import-stylesheet
| From: | bbrosseauatgmail at osu1 dot php dot net | Date: | Wed, 02 Mar 2005 04:46:53 +0000 |
| Subject: | note 50504 added to function.xsl-xsltprocessor-import-stylesheet | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-85766@lists.php.net to get a copy of this message | ||
For those who wants to use external documents, it is important not to use the DomDocument::loadXML
because the processor will not have the path to look for other files
So if you want to transform some xml with a pre-generated stylesheet $f:
$f = 'somestylesheet.xsl';
$xsl = DomDocument::loadXML(file_get_contents($f));
document('other.xml') will not work with relative path and
$xsl = DomDocument::load($f);
will!
----
Manual Page -- http://www.php.net/manual/en/function.xsl-xsltprocessor-import-stylesheet.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+50504
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50504&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50504&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50504&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50504&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50504&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+50504&report=yes
Search -- http://master.php.net/manage/user-notes.php