[x3d-public] Need for acceptableStatements (or types) for children fields in X3D Object Model

John Carlson yottzumm at gmail.com
Thu Jul 20 08:19:57 PDT 2017


I believe we need acceptableStatements to restrict acceptable statements for children fields in the X3D Object Model.  If it’s ProtoInstance we have a acceptable statements which are comments. If no children field is found, then we have -commentRoute in JSON schema (temporarily now -childrenStatements). However if there are children, there’s no way to specify which statements are allowed. Previously, I tacked X3DChildNode above the statement inheritance hierarchy in my schema generator, which was wrong.

Do we need to extend this extra children field to other nodes so they can accept statements? And then just don’t support any acceptableNodeTypes for those children?

Can we separate nodes and statements into separate children arrays in X3DJSON?

Things to think about.

John

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170720/599300a8/attachment-0001.html>


More information about the x3d-public mailing list