onload-Event not fired for SVG after XSLT transformation

Description

A transformation horo.xsl is applied automatically by an XSL stylesheet processing instruction on an XML document horo.xml. The result is an SVG graphic horoOutput.xml. This SVG graphic needs some processing when it is loaded. This processing should be executed onload.

Problem When the XSLT transformation is performed by the browser, the onload event handler is not executed. Instead, when embedding the transformation result directly, the onload event is handled, and the graphic displays properly.

Demo when the browser performs XSLT

The graphic doesn't display properly, since the onload handler is not performed.

Horoskop kann leider nicht angezeigt werden. Verwenden Sie einen SVG-fähigen Browser (wie z.B. Firefox). Im Internet Explorer benötigen Sie ein SVG-Plugin, z.B. den Adobe SVG Viewer.

Demo when the browser gets the XSLT result

The graphic displays properly, since the onload handler is performed.

Horoskop kann leider nicht angezeigt werden. Verwenden Sie einen SVG-fähigen Browser (wie z.B. Firefox). Im Internet Explorer benötigen Sie ein SVG-Plugin, z.B. den Adobe SVG Viewer.

Tested in Firefox 2.0.0.4.