1

tidy を使用して整形式の XML に変換された HTML ファイルを修正するために xsltproc を使用していますが、実行時間は信じられないほど悪く、ファイルごとに 1 分以上かかります。tidy による 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>
4

0 に答える 0