Annotation of parser3/tests/362.html, revision 1.2
1.1 moko 1: @main[]
2: $template[^xdoc::create{<?xml version="1.0" encoding="utf-8"?>
3: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
4: <xsl:template match="*">
5: <xsl:value-of select="."/>
6: </xsl:template>
7: </xsl:stylesheet>}]
8:
9:
10: 1. original template: ^taint[as-is][^template.string[]]
11: transform OK: ^transform[1]
12:
13:
14: 2. libxml modifies template: ^taint[as-is][^template.string[]]
15: but transform OK as we cache compiled one: ^transform[2]
16:
17:
18: $m[^template.documentElement.selectSingle[*[1]]]
19: $m.nodeValue[test]
20:
21: 3. after manual template modification: ^taint[as-is][^template.string[]]
22: transform still OK: ^transform[3]
23:
24:
25: $new[^template.documentElement.appendChild[^template.createElementNS[http://www.w3.org/1999/XSL/Transform;xsl:template]]]
26: ^new.setAttribute[match;root]
1.2 ! moko 27: $new.nodeValue[works]
1.1 moko 28:
1.2 ! moko 29: 4. new templates are not ignored: ^taint[as-is][^template.string[]]
! 30: transform: ^transform[4]
1.1 moko 31:
32:
33: @transform[param]
34: $doc[^xdoc::create{<?xml version="1.0" encoding="utf-8"?>
35: <root>$param</root>}]
36:
37: $result[^doc.transform[$template]]
38: $result[^result.string[ $.omit-xml-declaration[yes] ]]
E-mail: