W3C home > Mailing lists > Public > www-svg@w3.org > October 2005

Re: SVG12: A.7.18 style

From: Ola Andersson <Ola.Andersson@ikivo.com>
Date: Wed, 12 Oct 2005 13:35:42 +0200
Message-ID: <586AE9F507AF5E4AA45364333D9E2FA201093D71@sesthsrv02.zoomon.local>
To: <www-svg@w3.org>, <derhoermi@gmx.net>
Cc: "SVG WG" <w3c-svg-wg@w3.org>
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="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny"

xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 500 500">

xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:myns="http://example.org/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("http://example.org/myNS", "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 <derhoermi@gmx.net <mailto:derhoermi@gmx.net?Subject=Re:%20SVG12:%20A.7.18%20style&In-Reply-To=%3C42fbe979.138250828@smtp.bjoern.hoehrmann.de%3E&References=%3C42fbe979.138250828@smtp.bjoern.hoehrmann.de%3E> > 
Date: Mon, 18 Apr 2005 00:59:05 +0200
To: www-svg@w3.org <mailto:www-svg@w3.org?Subject=Re:%20SVG12:%20A.7.18%20style&In-Reply-To=%3C42fbe979.138250828@smtp.bjoern.hoehrmann.de%3E&References=%3C42fbe979.138250828@smtp.bjoern.hoehrmann.de%3E>  
Message-ID: <42fbe979.138250828@smtp.bjoern.hoehrmann.de> 
Dear Scalable Vector Graphics Working Group,
  In http://www.w3.org/TR/2005/WD-SVGMobile12-20050413/svgudom.html
appendix A.7.18 example #2 (both the markup and the computer code) is
inconsistent with <http://www.w3.org/2001/06/manual/#Examples>, please
change the draft to be consistent with W3C's manual of style.
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de <http://bjoern.hoehrmann.de> 
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de <http://www.bjoernsworld.de> 
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ <http://www.websitedev.de/>  

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

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