diff --git a/reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml b/reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml index 3f4f58f359..7d6199b73b 100644 --- a/reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml +++ b/reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml @@ -1,5 +1,5 @@ - + XSLTProcessor->registerPHPFunctions() @@ -46,6 +46,54 @@ &return.void; + + &reftitle.examples; + + + Simple PHP Function call from a stylesheet + + + bob + + + joe + + +EOB; +$xsl = << + + + + +

Users

+ + + + +
+ +
+ +
+
+EOB; +$xmldoc = DOMDocument::loadXML($xml); +$xsldoc = DOMDocument::loadXML($xsl); + +$proc = new XSLTProcessor(); +$proc->registerPHPFunctions(); +$proc->importStyleSheet($xsldoc); +echo $proc->transformToXML($xmldoc); +?>]]>
+
+
+
&reftitle.changelog;