Content-Type: text/html
Content-Length: 1054
1. original template: <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="*">
<xsl:value-of select="."/>
</xsl:template>
</xsl:stylesheet>
transform OK: 1
2. libxml modifies template: <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"><xsl:template match="*"><xsl:value-of select="."/></xsl:template></xsl:stylesheet>
but transform OK as we cache compiled one: 2
3. after manual template modification: <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"><xsl:template match="*">test</xsl:template></xsl:stylesheet>
transform still OK: test
4. new templates are not ignored: <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"><xsl:template match="*">test</xsl:template><xsl:template match="root">works</xsl:template></xsl:stylesheet>
transform: works
E-mail: