[xslt] libxslt bug



Taken the following XSL sheet:
    <xsl:stylesheet
        version="1.0"
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>

    <xsl:template match="*">
        <xsl:copy>
            <xsl:copy-of select="@*"/>
            <xsl:apply-templates/>
        </xsl:copy>
    </xsl:template>

    </xsl:stylesheet>

And the following XML input:
    <foo option="1" blaat="2" fiets="3">Test</foo>

The output (libxml2-2.3.4/libxslt-0.5.0) becomes:
    <?xml version="1.0"?>
    <foo><option>1</option><blaat>2</blaat><fiets>3</fiets>Test</foo>

Which doesn't seem right :)

                                                               robert




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