Здравствуйте,
помогите, пожалуйста, разобраться. Есть необходимость вставить код php в xslt и сделать
его рабочим. Для этого я пытаюсь использовать инструкцию по обработке вывода.
Пример:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:php="http://php.net/xsl" exclude-result-prefixes="php">
<xsl:output method="xml" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-
strict.dtd" encoding="UTF-8" />
<xsl:template match="/temp">
<div class="tclass">
<xsl:processing-instruction name="php">
echo '123test';
</xsl:processing-instruction>
</div>
</xsl:template>
</xsl:stylesheet>
Но на выходе я получаю:
<!--?php
echo '123test';
?-->
Что я делаю не так? Возможно ли настроить все-таки php в xslt?