我正在使用xsltproc修复已经使用整洁转换为格式良好的XML的HTML文件,但运行时间难以置信,每个文件超过一分钟。我想知道整理的XML输出是否有问题,或者我的xsl是愚蠢的,虽然它非常简单:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:h="http://www.w3.org/1999/xhtml">
<xsl:output method="html" indent="yes" omit-xml-declaration="yes"/>
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="processing-instruction('php')"></xsl:template>
</xsl:stylesheet>