[Release] Webkit-EFL Ver. 2.0_beta_118996_0.6.22
[framework/web/webkit-efl.git] / LayoutTests / fast / events / xsl-onload.xsl
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2
3 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
4         <xsl:output method="html" indent="yes"/>
5
6         <xsl:template match="*|@*|processing-instruction()|comment()">
7                 <xsl:copy>
8                         <xsl:apply-templates select="*|@*|text()|processing-instruction()|comment()"/>
9                 </xsl:copy>
10         </xsl:template>
11
12 <xsl:template match="body">
13         <body onload="document.getElementById('result').appendChild(document.createTextNode('Handled load event.'))">
14                 <script>if (window.layoutTestController) { layoutTestController.dumpAsText(); }</script>
15                 <p>This is a regression test that checks for a problem where parsing would be stuck true and you'd never get a load event for an XSL-generated page</p>
16                 <p>If the test succeeds, the next paragraph will say "handled load event". If that message is missing, the test failed.</p>
17                 <p id="result"/>
18         </body>
19 </xsl:template>
20
21 </xsl:stylesheet>