note 28183 added to function.xslt-process

From: Date: Sun, 05 Jan 2003 01:43:51 +0000
Subject: note 28183 added to function.xslt-process
Groups: php.notes 
Request: Send a blank email to php-notes+get-41677@lists.php.net to get a copy of this message
An important detail if you want to use the last argument to include parameters to the template: <?PHP xslt_process($xslt, 'foo.xml', 'foo.xslt', NULL, array(), array('foo' => 'FOO')); ?> In the xsl file: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:param name="foo"/> <xsl:template match="/"> <xsl:value-of select="foo"/> ......... Note the <xsl:param name="foo"/> is specified *outside* the template tag, but can be referenced inside it. -- http://www.php.net/manual/en/function.xslt-process.php http://master.php.net/manage/user-notes.php?action=edit+28183 http://master.php.net/manage/user-notes.php?action=delete+28183 http://master.php.net/manage/user-notes.php?action=reject+28183

« previous php.notes (#41677) next »