I am using XSLT to transform a XML into a html/php file. In this XSLT I replace some tags by php code and now I have to pass attribute values into that php code. My problem
Use a recursive template to do the find/replace:
Applied to your example:
$this->doSomething('
');
Note:
to explicitly define text intended for the output, and not have to worry about whitespace between that text and template calls.' for the single quote (a.k.a. apostrophe)