[x3d-public] MFString quoting [was: interesting sample]

Don Brutzman brutzman at nps.edu
Wed Apr 26 19:39:20 PDT 2017


On 4/26/2017 7:10 AM, Andreas Plesch wrote:
> 
> 
> On Apr 25, 2017 11:16 PM, "Michalis Kamburelis"
> 
>     So
> 
>        " ' MFString or SFString ? ' "
> 
>     is either
>     - an incorrect MFString (you cannot use ' to delimit parts within MFString)
> 
> Yes, you are right, that is incorrect.

agreed that is incorrect

> But that brings up SFStrings.
> When not used as part of an MFString, they still have the double quote requirement while XML allows both single or double quotes.
agreed for SFString values.  Equivalent constructs:

XML
	<WorldInfo title='Hello world!'/>
	<WorldInfo title="Hello world!"/>

ClassicVRML and VRML encodings do not permit such variation, simply

	WorldInfo {
	  title "Hello world!"
	}

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