Re: [SVG1.2] 6 XML Events Integration

"Antoine Quint" <ml@graougraou.com>
> > I'm concerned on the value of XML Events, SVG 1.2 is a multi-namespace
> > aware
> > application, it has specific support for DOM 3 events, so we need
> > multi-namespace events, I do not feel the specification should
> > introduce
> > spec complexity, implementation cost, and authoring confusion to
> > simply add
> > a non-namespace aware inferior method of seperating script and content
> > than
> > DOM 3 provides.
>
> I appreciate your position, although it is rather extreme to say that
> it adds authoring confusion and spec complexity :) I would need to
> re-read the current draft section, but I'm sure we can clear those two
> problems with careful wording comparing with the existing
> attribute-based event listeners.

The authoring confusion is the same as people using setAttribute vs
setAttributeNS, having non-namespace aware versions confuses people.  Any
non-trivial extensions have implementation cost.

> Namespace support is really useful,
> and using XML Events the way they are integrated today would only
> provide a better (although I feel you might argue this) alternative

No they're better than inline, but so marginally better, that it's not worth
confusing matters, we have DOM 3, we don't need anything else.

> > <handler type="text/ecmascript" ev:event="click">
> >  <foo:offset xmlns:foo="urn:chicken#" value="10"/>
> >  alert('a');
> > </handler>
> >
> > What is passed to the script engine?
>
> I don't understand this example as the <handler> element can only
> contain code, as the first sentence of section 6.1 states:
>
> "The handler element is similar to the script element: its contents,
> either included inline or referenced, are code that is to be executed
> by the scripting engine(s) used by user agent."

Maybe read-on to 6.1.1 or 6.2?

  <handler id="myClickHandler" type="application/java"
           xml:base="http://example.com/myJar.jar"
           xlink:href="#com.example.MyXMLEventHandler"/>
      <foo:offset value="10"/>
      <foo:person>
         <foo:name>Victor Vector</foo:name>
         <foo:age>42</foo:age>
      </foo:person>
  </handler>

Jim.

Received on Saturday, 15 November 2003 11:49:35 UTC