<div dir="ltr"><a href="https://github.com/create3000/Library/search?p=3&q=ProtoInstance+USE%3D">https://github.com/create3000/Library/search?p=3&q=ProtoInstance+USE%3D</a><br><div><br></div><div>is a search for USE ProtoInstances in the Library (although github search is very limited).</div><div><br></div><div>Most USE ProtoInstances do not have a name attribute in the Library but a few do:</div><div><br></div><div><a href="https://github.com/create3000/Library/blob/11f7f4ad710f2fd9ab88c82a0ea39cb1afe67686/Tests/Components/ParticleSystems/BoundedPhysicsModel.x3d#L121">https://github.com/create3000/Library/blob/11f7f4ad710f2fd9ab88c82a0ea39cb1afe67686/Tests/Components/ParticleSystems/BoundedPhysicsModel.x3d#L121</a><br></div><div><br></div><div>Perhaps sometimes it is somehow required to actually add the name ?</div><div><br></div><div>-Andreas</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Nov 22, 2020 at 8:36 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">I don't have any .x3d HTML examples for Holger's library. I can provide json examples, if needed.  I <div><br>If you've got X3DJSONLD installed, running x_ite.sh in 

X3DJSONLD/src/main/shell should look in ../Library (Holger's library copy) and produce a plethora of .json files. I would uncomment the commented out "exit" in several.sh to stop running all the example code generated.</div><div><br></div><div>But it may be easier to provide you with my copy of Holger's Library.</div><div><br></div><div>Thanks!</div><div><br></div><div>John</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Nov 22, 2020 at 7:25 PM John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">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">Holger's Library probably still has ProtoInstance's with USE without a name.  You'll probably want to check if they work in X3DOM.<div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Nov 22, 2020 at 6:46 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">Yes. I was saying these are the only Proto examples I came across which do have USE without a name. To me it would be clearer and more similar to regular nodes if name would be always added, perhaps even required (even though not strictly necessary).<div><br></div><div>Andreas</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Nov 22, 2020 at 6:21 PM John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">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">I'm not finding any name's and USE's together in ProtoInstance node in the LOA*.x3d examples from the HAnim 2 part 1 spec.<div><br></div><div>grep ProtoInstance LOA*x3d|grep USE|grep name<br><br></div><div>John</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><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div>Andreas Plesch<br>Waltham, MA 02453</div></div></div>
</blockquote></div>
</blockquote></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Andreas Plesch<br>Waltham, MA 02453</div></div></div>