W3C home > Mailing lists > Public > public-svg-wg@w3.org > October to December 2009

Java bindings

From: Cameron McCormack <cam@mcc.id.au>
Date: Thu, 15 Oct 2009 17:31:32 +1100
To: public-svg-wg@w3.org
Message-ID: <20091015063132.GG13690@wok.mcc.id.au>
Hello WG.

One last message from me. :-)


Last night I had a go at generating the Java bindings from the IDL.
idlj didn’t produce appropriate output.  Attached is an XSLT 2.0
stylesheet that generates the Java bindings.  Run it with this command
from the master/ directory:

java -classpath ../../../tools/saxonb/saxon9.jar net.sf.saxon.Transform
-ext:on svg.idlx idl2java.xsl

(assuming you store the attached file as idl2java.xsl in master/).

This will generate files in master/org/w3c/dom/svg/ and
master/org/w3c/dom/smil/.  Make sure you run it after you do a make, so
that the idlx (XML version of the IDL) is updated first.  Don’t forget
to zip that that org/ directory up into java-bindings.zip when it’s time
to publish.

The output compiles with javac.  I haven’t done any sanity check against
the old Java bindings, though.  Someone should do that.  It seems OK at
a glance, though.


Second, I just noticed that in the IDL TimeEvent doesn’t inherit from
Event, which I think it should.


Finally, Doug, I noticed that
http://www.w3.org/2009/02/ElementTraversal-java-binding.zip is
inaccessible; it should be public.


Over and out,

Cameron

-- 
Cameron McCormack ≝ http://mcc.id.au/


Received on Thursday, 15 October 2009 06:32:14 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:20:11 UTC