【发布时间】:2013-06-11 23:53:44
【问题描述】:
我在尝试使用 PHP 处理指令为属性设置值时遇到问题:
XSLT
<li itemprop="startDate">
<xsl:attribute name="content">
<xsl:processing-instruction name="php">
echo "Monday";
?</xsl:processing-instruction>
</xsl:attribute>
Monday
</li>
页面渲染良好,但属性始终为空。
输出
<li itemprop="startDate" content="">Monday</li>
我希望 PHP 在属性中回显一个值
【问题讨论】:
标签: php html xml xslt xml-parsing