Behaviors seem like an interesting concept. Over on the xml-dev
I'd be curious to see the solution for FF. The feeling on xml-dev was
that there wasn't much one could do without modifying the browsers, as
there is no standard way to attach a script to an XML file (in the way
that the xml-stylesheet processing instruction can attach a CSS
stylesheet to a document).
OK, here we go: just a word of preface.
XML is *pure data*, so the only things one attaches to it are external
and internal DTD plus XSL transformation template. Only after being
parsed/transformed it becomes a *perceptually available data*.
Respectively in XML you don't have any links at all: you have abstract
data nodes which can become links, text, SVG drawing, aural narration
and anything else depending on the nature of the used transformation.
This way XML doesn't have the concept of Document with big letter "D"
like say HTML/XHTML do. What you see on your screen is a momentary
interpretation of given data transformed in the given way. I'm putting
this preface because from my observations many developers are still
mixing XHTML and XML so trying to squeeze more presentational data
(other than XSL template) into XML so make it more "cozy" and more
similar to the data/layout/styling cocktail they used to in (X)HTML.
To avoid any misunderstanding: I do *not* mean anyone personally,
especially you. But in case anyone else will read this thread: there
cannot be questions like "but how to format my links in XML itself".
You cannot format links in XML, because there are not any "links" in
there.
OK, enough of blah-blah...
<
http://jsnet.sourceforge.net/tmp/bx2/index.xml> demonstrates (one of
possibilities of) how to output links (Check on IE, Firefox, Camino,
Netscape 8)
As a personal gift
I also added Zebra behavior to paint even/odd
rows differently.
<
http://jsnet.sourceforge.net/tmp/bx2/demo.zip> archive contains all
involved files.