relaxng schema - use attributes for members and elements for structures?
- by rpkrpk
For a data-binding application, I am trying to draw parallels among RelaxNG, C++ and C.
RelaxNG.Elements === C++.Class === C.Struct
RelaxNG.Attributes === C++.class-members === C.structure-members
Only that the Elements in RelaxNG can also have a data-type (i.e. it seems Attribute is a special case of the Element).
Do I have the above equivalence correct? If I use the above convention in my implementation, will I be breaking some data-binding libraries?