我试图让meta
andimg
标记在 xslt 的输出中关闭。
我已经调查过了,似乎我需要选择一个“xml”方法而不是“html”,但这似乎仍然不起作用。
我目前有:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:php="http://php.net/xsl">
<xsl:output method="xml"
omit-xml-declaration="yes"
indent="yes"
encoding="iso-8859-1"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" />
<!-- ... -->
<meta name="keywords" content="{meta/data/here/text()}" />
<!-- ... -->
我在做任何明显错误的事情吗?