Re: attributes as virtual tags

Pascal Germroth:
> Well, I think this is a basic problem of XML: attributes, elements and
> content of attributes[*] are not considered equivalent. It should not be
> solved by CSS, it requires a new version of XML and everything
> surrounding it (like XPath and the DOM)...
> 
> *] like in SVG: <e style="fill: foo;" /> and <e fill="foo" /> mean the same.

Incidentally, these two are slightly different, since they will have
different specificity (the style="" one is (1,0,0,0) while the non-CSS
presentational hint fill="" is (0,0,0,0)), which might make a difference
when doing the cascade.

-- 
Cameron McCormack, http://mcc.id.au/
 xmpp:heycam@jabber.org  ▪  ICQ 26955922  ▪  MSN cam@mcc.id.au

Received on Friday, 22 June 2007 00:53:13 UTC