note 84309 added to xsltprocessor.registerphpfunctions

From: Date: Tue, 08 Jul 2008 21:21:24 +0000
Subject: note 84309 added to xsltprocessor.registerphpfunctions
Groups: php.notes 
Request: Send a blank email to php-notes+get-141279@lists.php.net to get a copy of this message
If you want to use replace() function similar to XPath 2.0[1] and you want to avoid a long XSLT function similar to this one[2], you can use PHP's str_replace() instead: <xsl:value-of select="php:functionString('str_replace','pattern', 'replacement' , . )"> Links: [1] http://www.w3.org/TR/2004/WD-xpath-functions-20041029/#func-replace [2] http://aspn.activestate.com/ASPN/Cookbook/XSLT/Recipe/65426 _ ---- Server IP: 208.69.120.35 Probable Submitter: 207.178.4.6 ---- Manual Page -- http://www.php.net/manual/en/xsltprocessor.registerphpfunctions.php Edit -- https://master.php.net/note/edit/84309 Del: integrated -- https://master.php.net/note/delete/84309/integrated Del: useless -- https://master.php.net/note/delete/84309/useless Del: bad code -- https://master.php.net/note/delete/84309/bad+code Del: spam -- https://master.php.net/note/delete/84309/spam Del: non-english -- https://master.php.net/note/delete/84309/non-english Del: in docs -- https://master.php.net/note/delete/84309/in+docs Del: other reasons-- https://master.php.net/note/delete/84309 Reject -- https://master.php.net/note/reject/84309 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#141279) next »