Using CSS for XML Events

Although I am very happy that XML Events encourages the declaration of
events and handlers orthogonally with respect to the content markup, IMO a
major omission is that target attribute of listener is only an IDREF.

It is common that a particular listener (event + handler) needs to be
applied to large number of content nodes (elements), and it would nice if
target attribute provided a way to classify versus redundant declarations.

For example, look at the new CSS TreeMenu I coded on the (left frame of)
following page, and note that the same onclick event and handler is
declared for nearly every node of the tree:

http://coolpagehelp.com

What is needed is some way to specify a set (a class) of elements to which
the same listener could be assigned.  Perhaps there is some way to leverage
CSS's selectors technology for specifying targets or using CSS to assign
listeners to selectors.

-Shelby Moore

Received on Monday, 16 December 2002 12:36:25 UTC