Talk:DOM meta system

From COLLADA Public Wiki
Revision as of 01:25, 27 March 2007 by Elf (talk | contribs) (moving in question from embedded in text & follow-up question)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Question on _contents

"Elements that contain complex content models or content models with an xs:choice will have an array (_contents) that stores the order of these children."

ANDY: I'm not following why this is different from the next array; the order is 1, 2, 3, and the ordinal values would be 1,2,3--obviously a subtlety or coding convention that I'm not catching.
ELLEN: This _contents array stores the elements, ie <triangles>, <polylist> (but as the DOM types domTriangles, etc. The next array stores an int value associated with the element. This int is used when adding new elements to maintain valid ordering according to the COLLADA schema.
ANDY: So if I'm reading this right, the original sentence should be "...will have an array (_contents) that stores these children in the order they appear in the schema"?? Elf 18:25, 26 March 2007 (PDT)