note 16172 added to function.xslt-run
| From: | benoit-sp at fb12 dot de | Date: | Thu, 18 Oct 2001 17:41:27 +0000 |
| Subject: | note 16172 added to function.xslt-run | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-19104@lists.php.net to get a copy of this message | ||
This is an extension to the "class XSLT" by regenfeld@gmx.net above.
This shows how the "xslt_args" argument to xslt_run() can be used to pass the
XML and/or XSLT data:
/* use $value as xml-input */
function setXmlInputBuf ($value){
$this->args['_xml'] = $value;
$this->xml_file = 'arg:/_xml';
}
/* use $value as stylesheet for the
transformation */
function setXslInputBuf ($value){
$this->args['_xsl'] = $value;
$this->xsl_file = 'arg:/_xsl';
}
simply use those instead of *File().
/B.
--
http://www.php.net/manual/en/function.xslt-run.php
http://master.php.net/manage/user-notes.php?action=edit+16172
http://master.php.net/manage/user-notes.php?action=delete+16172
http://master.php.net/manage/user-notes.php?action=reject+16172