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

yottzumm at gmail.com yottzumm at gmail.com
Wed Apr 26 12:55:52 PDT 2017


It’s

http://x3dgraphics.com/slidesets/X3dForWebAuthors/Chapter02GeometryPrimitives.pdf

Got caught in the grand renaming.  Also the parent page is wrong.

John

Sent from Mail for Windows 10

From: Andreas Plesch
Sent: Wednesday, April 26, 2017 3:12 PM
To: Don Brutzman
Cc: X3D Graphics public mailing list
Subject: Re: [x3d-public] MFString quoting [was: interesting sample]

Hi Don,
 
Date: Wed, 26 Apr 2017 10:37:54 -0700
From: Don Brutzman <brutzman at nps.edu>

Good discussion, and perhaps document clarity can be improved by additional prose and further examples.  Several mantis issues have suggested that.

However that specification document - XML encoding for X3D - isn't wrong, per se.  Characters " and " are equivalent in XML, and that is why each of the proposed example variants actually work.

Further if we even tried to distinguish between special-character representations in the X3D XML encoding, all XML parsers would ignore such distinctions.

Lots more detail on handling string characters available in

        _X3D for Web Authors_
        http://x3dgraphics.com

        Geometry Part 1: Primitives
        http://x3dgraphics.com/slidesets/X3dForWebAuthors/Chapter02-GeometryPrimitives.pdf

"Not found". The pdf does not seem to be available anymore ?

 
        X3D Example Archives: X3D for Web Authors, Chapter 02 Geometry Primitives (3 scenes)
        http://x3dgraphics.com/examples/X3dForWebAuthors/Chapter02-GeometryPrimitives

http://x3dgraphics.com/examples/X3dForWebAuthors/Chapter02-GeometryPrimitives/TextSpecialCharactersIndex.html

First I thought both the cobweb and x3dom rendering are incorrect. But then I saw that for the x3dom encoding, all original ampersands from entities first characters got turned into a separate & entity:

<Text DEF='DefaultText' string='"Character entity substitutions:"         "empty string \"\" skips a line:"         ""         "apostrophe  '  is &apos;"          "ampersand & is &amp;"         "quote mark  \"  is &quot;"         "backslash \\ is X3D escape character"         "double backslash \\\\ is X3D backslash \\ character"         "Pi Π is &#928; XML character entity"'>
 
which I think makes the x3dom rendering correct.

It turns out the same conversion is happening to the .x3d file as well: http://x3dgraphics.com/examples/X3dForWebAuthors/Chapter02-GeometryPrimitives/TextSpecialCharacters.x3d

If the cobweb (and x3dom) rendering is the intended rendering, then the html on
 http://x3dgraphics.com/examples/X3dForWebAuthors/Chapter02-GeometryPrimitives/TextSpecialCharactersIndex.html

should be probably changed to show the text MFString as above or here: http://x3dgraphics.com/examples/X3dForWebAuthors/Chapter02-GeometryPrimitives/TextSpecialCharactersX3dom.xhtml
 

Andreas


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170426/48721fd8/attachment.html>


More information about the x3d-public mailing list