<div dir="auto">If I accept everything, validation is useless.   That’s why I provide a way for the user to override :).</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Nov 28, 2020 at 11:22 AM Christoph Valentin <<a href="mailto:christoph.valentin@gmx.at">christoph.valentin@gmx.at</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">

 
  
  
 
 <div style="word-break:break-word"><div style="line-height:1;padding:0.5em">hi all<br><br>Do you know Jon Postel's robustness principle?<br><br>Be liberal in what you accept and conservative in what you send out.<br><br>means: add the name attribute when sending<br>keep the name attribute when forwarding/proxying<br>ignore the name attribute when receiving.<br>kr<br><br>-- <br>Diese Nachricht wurde von meinem Android Mobiltelefon mit GMX Mail gesendet.</div><div style="line-height:1;padding:0.3em"><div>Am 28.11.20, 17:58 schrieb John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>>:</div><blockquote class="gmail_quote" style="margin:0.8ex 0pt 0pt 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">

  <div dir="auto">
   Again, if USE is specified in a proto instance in X3D JSON, then X3DJSONLD and related tools will not validate a name property in the node.   I suggest X3dToJson.xslt reject the spurious name when generating JSON.
  </div>
  <div dir="auto">
   <br>
  </div>
  <div dir="auto">
   John
  </div>
  <div>
   <br>
   <div class="gmail_quote">
    <div class="gmail_attr" dir="ltr">
     ---------- Forwarded message ---------
     <br>From: <strong class="gmail_sendername" dir="auto">Christoph Valentin</strong> <span dir="auto"><<a href="mailto:christoph.valentin@gmx.at" target="_blank">christoph.valentin@gmx.at</a>></span>
     <br>Date: Sat, Nov 28, 2020 at 8:18 AM
     <br>Subject: Re: [x3d-public] ProtoInstance USE without name
     <br>To: Andreas Plesch <<a href="mailto:andreasplesch@gmail.com" target="_blank">andreasplesch@gmail.com</a>>
     <br>CC: X3D Graphics public mailing list <<a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a>>
     <br>
    </div>
    <br>
    <br>
    <div>
     <div style="font-family:Verdana;font-size:12px">
      <div style="font-family:Verdana">
       Hi Andreas,
      </div>
      <div style="font-family:Verdana">
        
      </div>
      <div style="font-family:Verdana">
       I felt free to provide an example scene in three flavors.
      </div>
      <div style="font-family:Verdana">
        
      </div>
      <div style="font-family:Verdana">
       The prototype renders a little pig that says "Eatme!", when you touch it (in remembrance of Douglas Adams)
      </div>
      <div style="font-family:Verdana">
        
      </div>
      <div style="font-family:Verdana">
       Version A: <ProtoInstance USE="xxx" name="yyy"/>    WITH name attribute - standards compliant
      </div>
      <div style="font-family:Verdana">
       Version B: <ProtoInstance USE="xxx"/>  WITHOUT name attribute
      </div>
      <div style="font-family:Verdana">
       Version C: <Script USE="xxx"/>  WORKAROUND - works for all browsers
      </div>
      <div style="font-family:Verdana">
        
      </div>
      <div style="font-family:Verdana">
       I tested with BS Contact --- he can cope with all three versions.
      </div>
      <div style="font-family:Verdana">
        
      </div>
      <div style="font-family:Verdana">
       Download the .zip file at <a href="https://lc-soc-lc.at/experimental/ProtoInstanceWithUSE/" style="font-family:Verdana" target="_blank">https://lc-soc-lc.at/experimental/ProtoInstanceWithUSE/</a>     I provide it by a GPLv3.
      </div>
      <div style="font-family:Verdana">
        
      </div>
      <div style="font-family:Verdana">
       Feed Back welcome. You may take it and give it to your benchmark tests, if you like.
      </div>
      <div style="font-family:Verdana">
        
      </div>
      <div style="font-family:Verdana">
       Kind regards,
      </div>
      <div style="font-family:Verdana">
       Christoph
      </div>
      <div style="font-family:Verdana">
        
       <div style="font-family:Verdana">
         
        <div style="margin:10px 5px 5px 10px;padding:10px 0px 10px 10px;border-left-width:2px;border-left-style:solid;word-wrap:break-word;font-family:Verdana;border-left-color:rgb(195,217,229)">
         <div style="margin:0px 0px 10px;font-family:Verdana">
          <b style="font-family:Verdana">Gesendet:</b> Dienstag, 24. November 2020 um 00:30 Uhr
          <br> <b style="font-family:Verdana">Von:</b> "Andreas Plesch" <<a href="mailto:andreasplesch@gmail.com" style="font-family:Verdana" target="_blank">andreasplesch@gmail.com</a>>
          <br> <b style="font-family:Verdana">An:</b> "Christoph Valentin" <<a href="mailto:christoph.valentin@gmx.at" style="font-family:Verdana" target="_blank">christoph.valentin@gmx.at</a>>
          <br> <b style="font-family:Verdana">Cc:</b> "X3D Graphics public mailing list" <<a href="mailto:x3d-public@web3d.org" style="font-family:Verdana" target="_blank">x3d-public@web3d.org</a>>
          <br> <b style="font-family:Verdana">Betreff:</b> Re: [x3d-public] ProtoInstance USE without name
         </div>
        </div>
       </div>
      </div>
     </div>
    </div>
    <div>
     <div style="font-family:Verdana;font-size:12px">
      <div style="font-family:Verdana">
       <div style="font-family:Verdana">
        <div style="margin:10px 5px 5px 10px;padding:10px 0px 10px 10px;border-left-width:2px;border-left-style:solid;word-wrap:break-word;font-family:Verdana;border-left-color:rgb(195,217,229)">
         <div style="font-family:Verdana">
          <div style="font-family:Verdana">
           Hi Christoph,
           <div style="font-family:Verdana">
             
           </div>
           <div style="font-family:Verdana">
            thanks, interesting. Perhaps it will be useful to try a USE ProtoInstance in a very simple scene, in multiple browsers.
           </div>
           <div style="font-family:Verdana">
             
           </div>
           <div style="font-family:Verdana">
            -Andreas
           </div>
          </div>  
          <div class="gmail_quote" style="font-family:Verdana">
           <div class="gmail_attr" style="font-family:Verdana">
            On Mon, Nov 23, 2020 at 1:01 PM Christoph Valentin <<a href="mailto:christoph.valentin@gmx.at" style="font-family:Verdana" target="_blank">christoph.valentin@gmx.at</a>> wrote:
           </div>
           <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;font-family:Verdana;border-left-color:rgb(204,204,204)">
            <div style="font-family:Verdana">
             <div style="font-family:Verdana;font-size:12px">
              <div style="font-family:Verdana">
                
              </div>
              <div style="font-family:Verdana">
               <div style="font-family:Verdana">
                Hi
               </div>
               <div style="font-family:Verdana">
                 
               </div>
               <div style="font-family:Verdana">
                This bug is common to many X3D players (even classical non-WebGL X3D players).
               </div>
               <div style="font-family:Verdana">
                 
               </div>
               <div style="font-family:Verdana">
                I was used to use following workaround, which worked for all relevant players:
               </div>
               <div style="font-family:Verdana">
                 
               </div>
               <div style="font-family:Verdana">
                If I want to USE a DEFd ProtoInstance, I will actually instantiate a <Script> node with USE.
               </div>
               <div style="font-family:Verdana">
                 
               </div>
               <div style="font-family:Verdana">
                KR,
               </div>
               <div style="font-family:Verdana">
                Christoph
               </div>
               <div style="font-family:Verdana">
                 
                <div style="margin:10px 5px 5px 10px;padding:10px 0px 10px 10px;border-left-width:2px;border-left-style:solid;font-family:Verdana;border-left-color:rgb(195,217,229)">
                 <div style="margin:0px 0px 10px;font-family:Verdana">
                  <b style="font-family:Verdana">Gesendet:</b> Montag, 23. November 2020 um 00:00 Uhr
                  <br> <b style="font-family:Verdana">Von:</b> "Andreas Plesch" <<a href="mailto:andreasplesch@gmail.com" style="font-family:Verdana" target="_blank">andreasplesch@gmail.com</a>>
                  <br> <b style="font-family:Verdana">An:</b> "X3D Graphics public mailing list" <<a href="mailto:x3d-public@web3d.org" style="font-family:Verdana" target="_blank">x3d-public@web3d.org</a>>
                  <br> <b style="font-family:Verdana">Betreff:</b> [x3d-public] ProtoInstance USE without name
                 </div>
                 <div style="font-family:Verdana">
                  <div style="font-family:Verdana">
                   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 style="font-family:Verdana">
                     
                   </div>
                   <div style="font-family:Verdana">
                    The xml spec  at
                   </div>
                   <div style="font-family:Verdana">
                     
                   </div>
                   <div style="font-family:Verdana">
                    <a href="https://www.web3d.org/documents/specifications/19776-1/V3.3/Part01/concepts.html#ProtoInstanceAndFieldValueStatement" style="font-family:Verdana" target="_blank">https://www.web3d.org/documents/specifications/19776-1/V3.3/Part01/concepts.html#ProtoInstanceAndFieldValueStatement</a>
                   </div>
                   <div style="font-family:Verdana">
                     
                   </div>
                   <div style="font-family:Verdana">
                    does not address USE of ProtoInstances but all examples always have a name attribute.
                   </div>
                   <div style="font-family:Verdana">
                     
                   </div>
                   <div style="font-family:Verdana">
                    Also, in my quite extensive testing of Protos, I did not come across other examples of ProtoInstance elements without a name attribute.
                   </div>
                   <div style="font-family:Verdana">
                     
                   </div>
                   <div style="font-family:Verdana">
                    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 style="font-family:Verdana">
                     
                   </div>
                   <div style="font-family:Verdana">
                    I do not think the xml spec. would be otherwise affected by V.4 ?
                   </div>
                   <div style="font-family:Verdana">
                     
                   </div>
                   <div style="font-family:Verdana">
                    Best, Andreas
                   </div>
                   <div style="font-family:Verdana">
                     
                   </div></div></div></div></div></div></div></div></blockquote></div></div></div></div></div></div></div></div></div></blockquote></div></div><div style="word-break:break-word"><div style="line-height:1;padding:0.3em"><blockquote class="gmail_quote" style="margin:0.8ex 0pt 0pt 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div><div class="gmail_quote"><div><div style="font-family:Verdana;font-size:12px"><div style="font-family:Verdana"><div style="font-family:Verdana"><div style="margin:10px 5px 5px 10px;padding:10px 0px 10px 10px;border-left-width:2px;border-left-style:solid;word-wrap:break-word;font-family:Verdana;border-left-color:rgb(195,217,229)"><div style="font-family:Verdana"><div class="gmail_quote" style="font-family:Verdana"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;font-family:Verdana;border-left-color:rgb(204,204,204)"><div style="font-family:Verdana"><div style="font-family:Verdana;font-size:12px"><div style="font-family:Verdana"><div style="font-family:Verdana"><div style="margin:10px 5px 5px 10px;padding:10px 0px 10px 10px;border-left-width:2px;border-left-style:solid;font-family:Verdana;border-left-color:rgb(195,217,229)"><div style="font-family:Verdana"><div style="font-family:Verdana">
                   <div style="font-family:Verdana">
                    --
                    <div style="font-family:Verdana">
                     <div style="font-family:Verdana">
                      <div style="font-family:Verdana">
                       Andreas Plesch
                       <br> Waltham, MA 02453
                      </div>
                     </div>
                    </div>
                   </div>
                  </div> _______________________________________________ x3d-public mailing list <a href="mailto:x3d-public@web3d.org" style="font-family:Verdana" target="_blank">x3d-public@web3d.org</a> <a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" style="font-family:Verdana" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a>
                 </div>
                </div>
               </div>
              </div>
             </div>
            </div>
           </blockquote>
          </div>  
          <div style="font-family:Verdana">
            
          </div> --
          <div style="font-family:Verdana">
           <div style="font-family:Verdana">
            <div style="font-family:Verdana">
             Andreas Plesch
             <br> Waltham, MA 02453
            </div>
           </div>
          </div>
         </div>
        </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" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a>
    <br>
   </div>
  </div> _______________________________________________ x3d-public mailing list <a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a> <a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a>
 </blockquote></div></div>

</blockquote></div></div>