File:  [parser3project] / parser3 / tests / results / 362.processed
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Mon Nov 7 00:02:06 2016 UTC (9 years, 10 months ago) by moko
Branches: MAIN
CVS tags: release_3_4_5, HEAD
test for xsltParseStylesheetDoc caching as xsl modification after it added (related to bug #1108)

Content-Type: text/html
Content-Length: 1080

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 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 if used before first transform</xsl:template></xsl:stylesheet>

transform: test

E-mail: