[x3d-public] x3d case sensitivity

Leonard Daly web3d at realism.com
Tue Oct 27 13:54:09 PDT 2015


On 10/27/2015 12:55 PM, Andreas Plesch wrote:
> Hello Leonard,
>
> thanks for the quick clarification. General case sensitivity makes 
> more sense. Is there a sense of how case sensitivity was favoured over 
> case insensitivity originally, probably when VRML was designed ?

Yes. It was done as camel case. Nodes started with a capital letter and 
fields with lower case. Reserved words were all caps (e.g., PROTO, IS, 
DEF, USE). This pattern was continued to the XML description. If you (or 
the application you are using) uses the DTD or Schema, then case is 
enforced for the XML encoding.


Leonard Daly




>
> Andreas
>
>
> On Tue, Oct 27, 2015 at 3:00 PM, <x3d-public-request at web3d.org 
> <mailto:x3d-public-request at web3d.org>> wrote:
>
>     Message: 3
>     Date: Tue, 27 Oct 2015 09:47:19 -0700
>     From: Leonard Daly <Leonard.Daly at realism.com
>     <mailto:Leonard.Daly at realism.com>>
>     To: x3d-public at web3d.org <mailto:x3d-public at web3d.org>
>     Subject: Re: [x3d-public] x3d case sensitivity
>     Message-ID: <562FAA97.1000209 at realism.com
>     <mailto:562FAA97.1000209 at realism.com>>
>     Content-Type: text/plain; charset="windows-1252"; Format="flowed"
>
>     According to the standard X3D is case-sensitive
>     XML:
>     http://www.web3d.org/documents/specifications/19776-1/V3.3/Part01/concepts.html#XMLEncoding
>     (9th paragraph)
>     VRML:
>     http://www.web3d.org/documents/specifications/19776-2/V3.3/Part02/concepts.html#ClassicVRMLEncoding
>     (6th paragraph)
>     Compressed Binary: Use XML as an intermediate step so those rules
>     apply.
>
>     That does not mean that browser hard-enforce that requirement.
>
>     The X3DOM browser is not case sensitive because HTML tags are not (in
>     HTML5), though there is a very strong preference for lower case
>     (even in
>     compound words - e.g., onclick).
>
>     In the non-HTML environment, case sensitivity should apply to nodes,
>     fields, and keywords (e.g., DEF, USE, IS, etc.)
>
>
>     Leonard Daly
>
>
>
> _______________________________________________
> x3d-public mailing list
> x3d-public at web3d.org
> http://web3d.org/mailman/listinfo/x3d-public_web3d.org


-- 
*Leonard Daly*
X3D Co-Chair
Cloud Consultant
President, Daly Realism - /Creating the Future/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20151027/0d70ea46/attachment.html>


More information about the x3d-public mailing list