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

SVG12: Namespaced traits

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Mon, 11 Apr 2005 00:16:49 +0200
To: www-svg@w3.org
Message-ID: <4320a5cd.137811484@smtp.bjoern.hoehrmann.de>

Dear Scalable Vector Graphics Working Group,

  http://www.w3.org/TR/2004/WD-SVG12-20041027/binding.html allows to
define traits using the traitDef element for attributes in certain
namespaces. An example could be

  <xbl:definition element="foo:button">
    <traitDef name="x" namespace=""
       valueType="http://www.w3.org/2000/svg#SVGLength"/>

    <traitDef name="x" namespace="http://example.org/#"
       valueType="http://www.w3.org/2000/svg#SVGLength"/>
    ...

It is however not clear how one could use getFloatTrait() to access
the "x" trait here, from the definition of getFloatTrait() it seems
that it matches only on the localName so I could get either trait in
this case. This does not seem sound to me. Clearly, if it is not
possible to consider those distinct (except when it is a string trait)
I question the value of having a 'namespace' attribute on the traitDef
element in the first place.

Please change the specification such that it, uuhmm, makes more sense.

regards.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Sunday, 10 April 2005 22:16:27 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:29 GMT