<div dir="ltr">$ node x3dvalidate.js LOA*json<br>Loading schema<br>Parsing schema<br>Adding schema<br>Schema 4.0 added<br>Schema 4.0 compiled<br>Success reading LOA0ExampleSourceInVRML.json<br>Success reading LOA0ExampleSourceWithDiamonds.json<br>Success reading LOA1ExampleSourceInVRML.json<br>Success reading LOA1ExampleSourceWithDiamonds.json<br>Success reading LOA2ExampleSourceInVRML.json<br>Success reading LOA2ExampleSourceWithDiamonds.json<br>Success reading LOA3ExampleSourceInVRML.json<br>Success reading LOA3ExampleSourceWithDiamonds.json<br>Success reading LOA4ExampleSourceInVRML.json<br>Success reading LOA4ExampleSourceWithDiamonds.json<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Nov 22, 2020 at 5:15 PM John Carlson <<a href="mailto:yottzumm@gmail.com">yottzumm@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Interesting.  I will now check the LOA4*.json examples against schema and see what happens.<div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Nov 22, 2020 at 5:02 PM Andreas Plesch <<a href="mailto:andreasplesch@gmail.com" target="_blank">andreasplesch@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Looking at why the old Prototypes for HAnim did not work properly for x3dom, I found that the xml examples typically have a ProtoInstance statement with a USE attribute but without the corresponding name attribute defining the actual node type. However, x3dom expects a name attribute with every ProtoInstance statement, even USE ones, to be able to insert the appropriate node.<div><br></div><div>The xml spec  at<br></div><div><br></div><div><a href="https://www.web3d.org/documents/specifications/19776-1/V3.3/Part01/concepts.html#ProtoInstanceAndFieldValueStatement" target="_blank">https://www.web3d.org/documents/specifications/19776-1/V3.3/Part01/concepts.html#ProtoInstanceAndFieldValueStatement</a></div><div><br></div><div>does not address USE of ProtoInstances but all examples always have a name attribute.</div><div><br></div><div>Also, in my quite extensive testing of Protos, I did not come across other examples of ProtoInstance elements without a name attribute.</div><div><br></div><div>To be fair, the name attribute is not strictly necessary for USE ProtoInstances since the type of the inserted node can be determined from the referenced DEF node. But having the name attribute makes ProtoInstance elements more similar to regular nodes. So I think not requiring the name attribute for USE ProtoInstances should be explicitly allowed in the xml spec., but still be encouraged.</div><div><br></div><div>I do not think the xml spec. would be otherwise affected by V.4 ?</div><div><br></div><div>Best, Andreas</div><div><br></div><div>-- <br><div dir="ltr"><div dir="ltr"><div>Andreas Plesch<br>Waltham, MA 02453</div></div></div></div></div>
_______________________________________________<br>
x3d-public mailing list<br>
<a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a><br>
<a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" rel="noreferrer" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a><br>
</blockquote></div>
</blockquote></div>