note 56091 added to function.domxsltstylesheet-process
| From: | ThomasBroyer at osu1 dot php dot net | Date: | Tue, 23 Aug 2005 07:54:21 +0000 |
| Subject: | note 56091 added to function.domxsltstylesheet-process | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-94070@lists.php.net to get a copy of this message | ||
Within LibXML/LibXSLT, the values of the parameters passed in to the XSLT stylesheet for processing
are treated as being XPath expressions to be applied to the source document. This allows you to pass
parameters of type "node-set".
This is actually the same as if you modified your XSLT stylesheet to change the default value of the
top-level xsl:param to <xsl:param name="param-name" select="param-value"
/>
As this behavior might be a bit misleading, the PHP/DOMXML binding defaults to
"converting" every parameter value to a string, as if you modified your XSLT stylesheet to
change the default value of the top-level xsl:param to <xsl:param name="param-name"
select="'param-value'" /> (note the single-quotes around the value and
enclosed in double-quotes).
If you want to turn back to the original LibXML/LibXSLT behavior, just pass TRUE as the
"is_param_xpath" argument.
----
Manual Page -- http://www.php.net/manual/en/function.domxsltstylesheet-process.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+56091
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+56091&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+56091&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+56091&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+56091&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+56091&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+56091&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+56091&report=yes
Search -- http://master.php.net/manage/user-notes.php