Re: SVG12: A.7.18 style

Hi Björn,

We have now changed the example to be consistent with W3C's manual of style.

Example now looks like:


Example #2: The usage of java together with the 'handler' element

The example rely on the fact the 'myclasses.jar' JAR file contains a MANIFEST file with the following entry: SVG-Handler-Class: org.example.SVGHandler

Given the following SVG document: 

<svg xmlns:svg="" version="1.2" baseProfile="tiny"

xmlns:xlink="" viewBox="0 0 500 500">

xmlns:ev="" xmlns:myns="">

<script id="init" type="application/java-archive" xlink:href="myclasses.jar"/>

<rect id="therect" x="0" y="0" width="100" height="100">

<handler type="application/java" ev:event="click"

xlink:href="#init" myns:listenerClass="MyListener"/>



Given that the SVGHandler implementation available in the 'myclasses.jar' JAR file is the following: 

package org.example;

import org.w3c.dom.*;

import org.w3c.dom.svg.*;

public class SVGHandler implements EventListenerInitializer2 {

public void initializeEventListeners (Element scriptElement) {}

public EventListener createEventListener (Element handlerElement) {

EventListener listenerInstance = null;

try {

String listenerClass = handlerElement.getAttributeNS("", "listenerClass");

listenerInstance = Class.forName(listenerClass).newInstance();


catch (Exception e) {}

return listenerInstance;




Please reply to this mail within two weeks if the change does not address your concerns.


/svg WG




From: Bjoern Hoehrmann < <> > 
Date: Mon, 18 Apr 2005 00:59:05 +0200
To: <>  
Message-ID: <> 
Dear Scalable Vector Graphics Working Group,
appendix A.7.18 example #2 (both the markup and the computer code) is
inconsistent with <>, please
change the draft to be consistent with W3C's manual of style.
Björn Höhrmann · · <> 
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · <> 
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · <>  


Received on Wednesday, 12 October 2005 11:35:54 UTC