File:  [parser3project] / parser3 / tests / results / 362.processed
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Tue Dec 15 16:41:08 2020 UTC (5 years, 6 months ago) by moko
Branches: MAIN
CVS tags: release_3_5_1, release_3_5_0, release_3_4_6, HEAD
test updated after changes after upgrade to libxml2-2.9.9 were made (related to bug #1108)

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: