[x3d-public] Finding more than one use of a DEF in VRML

Don Brutzman brutzman at nps.edu
Thu Mar 26 09:43:27 PDT 2020


On 3/26/2020 8:27 AM, John Carlson wrote:
> Now I understand why I got all the blank stares when I suggested using a symbol table for DEFs. To me, a DEF is like a var in ECMAScript.

what blank stares?!  8)

>  I guess DEF is more like id attribute in HTML5:

yes

>  double references are "allowed", for some reason.

no.  Each id definition must be unique, multiple references to that unique label can occur.  Browsers are tolerant of this common error.

> Very confusing for someone coming from a standard programming language like Java.
> 
> Now i understand what you guys mean when you say ID/IDREF (at least the first half).

Further help:

* X3D Tooltips: XML Data Types
   https://www.web3d.org/x3d/content/X3dTooltips.html#XML

all the best, Don
-- 
Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman at nps.edu
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman



More information about the x3d-public mailing list