tag:help-archives.hannonhill.com,2010-02-09:/discussions/xslt-formats/57-how-do-you-embed-php-into-a-xslt-stylesheetCascade CMS: Discussion 2018-10-18T20:36:13Ztag:help-archives.hannonhill.com,2010-02-09:Comment/66455072011-04-14T20:03:54Z2011-04-14T20:04:56ZHow do you output PHP code from an XSLT stylesheet?<div><p>Have you tried xsl:processing-instruction ?</p>
<pre>
<code><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output indent="yes" method="xml"/>
<xsl:template match="system-index-block">
<xsl:processing-instruction name="php">
echo 'Hello World';
</xsl:processing-instruction>
</xsl:template>
</xsl:stylesheet></code>
</pre></div>Charlie Holdertag:help-archives.hannonhill.com,2010-02-09:Comment/66455072011-04-15T19:20:13Z2011-04-15T19:20:13ZHow do you output PHP code from an XSLT stylesheet?<div><p>That did the trick. Thanks!</p></div>espanae