Why is it that classes need to be defined at the top level?

Example:

Allowed:
<canvas debug="true">
   <class name="foo" width="100" height="100" bgcolor="cyan"/>
   <view x="100">
       <foo/>
   </view>
</canvas>

Not allowed:
<canvas debug="true">
   <view x="100">
       <class name="foo" width="100" height="100" bgcolor="cyan"/>
       <foo/>
   </view>
</canvas>

- rami

Reply via email to