[xslt] Possible bug in libxslt?



The following stylesheet w/a single match

<xsl:template match="@*|node()">
    <xsl:apply-templates />
</xsl:template>

should drop all content from the processed xml file.

With MSXML on Windows, it drops all the text, as expected

With Xalan on Windows, it drops all the text, as expected

With ActiveState Komodo on Windows, it drops all text, as expected

With Sabltron on OS X, it drops all the text, as expected

With LibXSLT, on both Windows and OS X, it preserves all the text, which is
not what I expected.

Is this a bug in LibXSLT? Or does LibXSLT expect the rule to be written
differently?

Thanks,


Ben




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]