relaxng schema - use attributes for members and elements for structures?
Posted
by rpkrpk
on Stack Overflow
See other posts from Stack Overflow
or by rpkrpk
Published on 2010-05-17T05:41:03Z
Indexed on
2010/05/17
5:50 UTC
Read the original article
Hit count: 173
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?
© Stack Overflow or respective owner