<div dir="ltr">It's important to note that this thread is mainly about DEF in VRML.  Which may have different behavior than DEF in XML and JSON.   Do I have the whole story now, or is VRML dependent on XML types?<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 Thu, Mar 26, 2020 at 11:46 AM Don Brutzman <<a href="mailto:brutzman@nps.edu">brutzman@nps.edu</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">On 3/26/2020 8:54 AM, John Carlson wrote:<br>
> As mentioned on other thread:<br>
> <br>
> <a href="https://www.web3d.org/x3d/content/X3dTooltips.html#ID" rel="noreferrer" target="_blank">https://www.web3d.org/x3d/content/X3dTooltips.html#ID</a><br>
> <br>
> "*ID <<a href="https://www.w3.org/TR/REC-xml/#sec-attribute-types" rel="noreferrer" target="_blank">https://www.w3.org/TR/REC-xml/#sec-attribute-types</a>>* is a NMTOKEN that is unique within the scene, corresponding to the DEF attribute in X3D. "<br>
> <br>
> This would mean that the DEF attribute is unique within a scene?  Or no?<br>
> <br>
> Help!   The sky is falling!<br>
> <br>
> John<br>
<br>
that is exactly why you want to read my note from earlier today, conveniently appearing below in your message:<br>
<br>
"Wondering if we should define a suggested practice for de-duplicating DEF names within a proto"<br>
<br>
> On Thu, Mar 26, 2020 at 9:26 AM Don Brutzman <<a href="mailto:brutzman@nps.edu" target="_blank">brutzman@nps.edu</a> <mailto:<a href="mailto:brutzman@nps.edu" target="_blank">brutzman@nps.edu</a>>> wrote:<br>
> <br>
>     On 3/25/2020 7:11 PM, GPU Group wrote:<br>
>      > Chisel? "it was simply put in the public domain by Trapezium when they folded many years ago. They didn¹t specify any license" - Louka<br>
>      > <a href="http://dug9.users.sourceforge.net/web3d/temp/chisel-src.zip" rel="noreferrer" target="_blank">http://dug9.users.sourceforge.net/web3d/temp/chisel-src.zip</a><br>
> <br>
>     Also<br>
> <br>
>     * X3D Resources: Conversions and Translation Tools<br>
>     <a href="https://www.web3d.org/x3d/content/examples/X3dResources.html#Conversions" rel="noreferrer" target="_blank">https://www.web3d.org/x3d/content/examples/X3dResources.html#Conversions</a><br>
> <br>
>     * 15. Chisel VRML Optimisation Tool<br>
>     <a href="http://www2.hrp.no/vr/tools/chisel/install.htm" rel="noreferrer" target="_blank">http://www2.hrp.no/vr/tools/chisel/install.htm</a><br>
> <br>
>         with autoinstaller<br>
>     <a href="http://www2.hrp.no/vr/tools/chisel/install.htm" rel="noreferrer" target="_blank">http://www2.hrp.no/vr/tools/chisel/install.htm</a><br>
> <br>
>         and documentation<br>
>     <a href="http://www2.hrp.no/vr/tools/chisel/doc/index.html" rel="noreferrer" target="_blank">http://www2.hrp.no/vr/tools/chisel/doc/index.html</a><br>
> <br>
>         provided by Halden Virtual Reality Centre.<br>
>     <a href="http://www2.hrp.no/vr/about/index.html" rel="noreferrer" target="_blank">http://www2.hrp.no/vr/about/index.html</a><br>
> <br>
>         Originally built by Trapezium and maintained by NIST.<br>
>     <a href="http://ovrt.nist.gov/chisel.html" rel="noreferrer" target="_blank">http://ovrt.nist.gov/chisel.html</a><br>
>         (link no longer working, hoping to find replacement)<br>
> <br>
>      > But I suspect double-deffing isn't illegal. I think I've been through it, and different browsers honored the first or last definition.<br>
>      > -Doug<br>
> <br>
>     Agreed.  Although it is legal in X3D abstract specification and in VRML/ClassicVRML encodings, it leads to validation difficulties in XML (and at some point JSON when JSON Schema is finished).<br>
> <br>
>     Wondering if we should define a suggested practice for de-duplicating DEF names within a proto, e.g.<br>
> <br>
>              MyWhizzyProto includes DEF SomeDuplicatedName<br>
> <br>
>     might get tidied up to globally rename<br>
> <br>
>              MyWhizzyProto includes DEF MyWhizzyProto.SomeDuplicatedName<br>
> <br>
>     We might also apply this in the PrototypeExpander work if that gets revisited.<br>
> <br>
>     Thoughts?<br>
> <br>
>      > On Wed, Mar 25, 2020 at 7:43 PM John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a> <mailto:<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>> <mailto:<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a> <mailto:<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>>>> wrote:<br>
>      ><br>
>      >     That is, more than one DEF with the same value.<br>
>      ><br>
>      >     I realize that separate PROTOs may have the same DEF due to namespaces. Unfortunately writing a Unix script to find this takes massive brain power.<br>
>      ><br>
>      >     John<br>
>      ><br>
>      >     On Wed, Mar 25, 2020 at 8:37 PM John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a> <mailto:<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>> <mailto:<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a> <mailto:<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>>>> wrote:<br>
>      ><br>
>      >         I’m not particular looking for a vrml parser unless it catches double use of a DEF.<br>
> <br>
>     all the best, Don<br>
>     -- <br>
>     Don Brutzman  Naval Postgraduate School, Code USW/Br <a href="mailto:brutzman@nps.edu" target="_blank">brutzman@nps.edu</a> <mailto:<a href="mailto:brutzman@nps.edu" target="_blank">brutzman@nps.edu</a>><br>
>     Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149<br>
>     X3D graphics, virtual worlds, navy robotics <a href="http://faculty.nps.edu/brutzman" rel="noreferrer" target="_blank">http://faculty.nps.edu/brutzman</a><br>
> <br>
<br>
all the best, Don<br>
-- <br>
Don Brutzman  Naval Postgraduate School, Code USW/Br       <a href="mailto:brutzman@nps.edu" target="_blank">brutzman@nps.edu</a><br>
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149<br>
X3D graphics, virtual worlds, navy robotics <a href="http://faculty.nps.edu/brutzman" rel="noreferrer" target="_blank">http://faculty.nps.edu/brutzman</a><br>
</blockquote></div>