Jim Ley wrote:
"Doug Schepers" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
org.mozilla.javascript.EvaluatorException: Can't find method org.apache.batik.css.dom.CSSOMStyleDeclaration.setProperty(string,string). (Inline Script; line 5)
Whilst Thomas is absolutely correct that setProperty takes 3 parameters, I don't agree that Batik should be erroring here, because ECMAscript has no notion of fixed parameters, calling setProperty("foo","bar",null) is identical in ECMAScript to setProperty("foo","bar") so whilst I would accept an error saying that "proirity can't be null", I don't accept that Batik is doing the right thing within ECMAScript binding.
Come on Jim, an error is an error :).
All these interfaces are defined using IDL and as such they are limited by the lowest common denominator. What you describe below goes well beyond LCD.
I'd always argue that null should be type-converted to the empty string if the binding expects a string and it should actually work.
I'd recommend not using CSS though in authoring SVG, as it'll make Basic compatibility easier and is reportedly faster in many viewers.
If you can point to something that suggests the third argument should be defaulted in languages that support it please let me know, otherwise giving the error that setProperty doesn't take two strings is fine, IMHO.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]