Re: xml/xsl document events for debugger (pagehide, pageshow)
"John J. Barton" <[email protected]> Fri, 15 Jun 2007 08:59:17 -0700
| Newsgroups | gmane.comp.mozilla.devel.xml |
|---|---|
| Message-ID | <[email protected]> |
Boris Zbarsky wrote:
> John J. Barton wrote:
>> I have been trying to add support for XSLT pages to Firebug.
>
> You mean ones transformed client-side?
>
>> The basic problem is that XSLT does not seem to signal these events:
>> win.addEventListener("pagehide", onUnloadTopWindow, true);
>> win.addEventListener("pageshow", onLoadWindowContent, true);
>> win.addEventListener("DOMContentLoaded", onLoadWindowContent, true);
>
> I'd expect the first two to fire for client-side-transformed things. Not
> sure about DOMContentLoaded; would have to look at the source to make sure.
>
> -Boris
>
Yes client side, I don't see any of these events in Firebug.
eg testXSLT.xml:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="testXSLT.xsl"?>
<root>
</root>
and testXSLT.xsl:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<script type="text/javascript">alert("hello");</script>
<h1>XSLT test</h1>
</body>
</html>
</xsl:template>
</xsl:stylesheet>