Wolf Paulus wrote:
Jarno,
I see your point, and having the ability do define a attribute that has some
kind of collection as a value is really helpful sometimes.
Therefore, instead of
<abc xyz="s,t,u"/>

we could write:

<abc>
 <attr name="xyz">s</attr>
 <attr name="xyz">t</attr>
 <attr name="xyz">u</attr>
</abc>

However, I would not go that far and cascading this approach, giving
attributes their own attributes.

Why not? Seems to be usefull:
<gridbagconstraints>
  <insets>
    <top>5</top>
    <bottom>5</bottom>
...

And I expect an easier implementation for this, despite I'm currently having no concrete code in mind...

And concerning to your headache with performance: let's see if this is really slowing things down. Why not use some configurable parser which takes an interface as construction argument? This interface is either implemented by a class using the old style of parsing things or another one which behaves differently.

Frank


This is definitively NOT the final word on this and I would like to
encourage everyone to voice their opinion.





Reply via email to