<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div> </div>

<div>
<div>Hi</div>

<div> </div>

<div>This bug is common to many X3D players (even classical non-WebGL X3D players).</div>

<div> </div>

<div>I was used to use following workaround, which worked for all relevant players:</div>

<div> </div>

<div>If I want to USE a DEFd ProtoInstance, I will actually instantiate a <Script> node with USE.</div>

<div> </div>

<div>KR,</div>

<div>Christoph</div>

<div> 
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Montag, 23. November 2020 um 00:00 Uhr<br/>
<b>Von:</b> "Andreas Plesch" <andreasplesch@gmail.com><br/>
<b>An:</b> "X3D Graphics public mailing list" <x3d-public@web3d.org><br/>
<b>Betreff:</b> [x3d-public] ProtoInstance USE without name</div>

<div name="quoted-content">
<div>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> </div>

<div>The xml spec  at</div>

<div> </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> </div>

<div>does not address USE of ProtoInstances but all examples always have a name attribute.</div>

<div> </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> </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> </div>

<div>I do not think the xml spec. would be otherwise affected by V.4 ?</div>

<div> </div>

<div>Best, Andreas</div>

<div> </div>

<div>--
<div class="gmail_signature">
<div>
<div>Andreas Plesch<br/>
Waltham, MA 02453</div>
</div>
</div>
</div>
</div>
_______________________________________________ x3d-public mailing list x3d-public@web3d.org <a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a></div>
</div>
</div>
</div></div></body></html>