W3C home > Mailing lists > Public > www-svg@w3.org > August 2009

Substitute for onload event in XSLT-generated graphics

From: Rüdiger Plantiko <ruediger.plantiko@astrotexte.ch>
Date: Tue, 25 Aug 2009 09:05:12 +0200 (CEST)
Message-ID: <17608.>
To: www-svg@w3.org

the SVG scripting specification defines that the onload event handler is
*only called for parsed nodes*. A similar event for XSLT-generated
graphics should be available as a substitute, since they are not parsed.

See my example page http://www.astrotexte.ch/sources/svgonload.html which
illustrates the problem, and the textual description of the problem in
https://bugzilla.mozilla.org/show_bug.cgi?id=386856 – they were right to
refuse this bug.

Basically, I want to separate data layer and presentation layer by keeping
only the data in the XML and doing the processing of the graphics in an
XSL style sheet. Since XSLT is ill-suited for trigonometric calculations
and similar operations, a scripting language has to be invoked during this

This can only work, however, if there exists an appropriate substitute for
the onload event or if the definition of onload is extended to this

- Rüdiger Plantiko

Example XML file (data layer):

<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet href="horo.xsl" type="text/xsl"?>
Received on Tuesday, 25 August 2009 16:15:44 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:18 UTC