[x3d-public] MFString quotes

Leonard Daly Leonard.Daly at realism.com
Wed Mar 15 16:35:53 PDT 2017


I think I see where the problem is. In Section 5.5 of V3.3 
(http://www.web3d.org/documents/specifications/19776-1/V3.3/Part01/EncodingOfFields.html#SFString) 
states: "The MFString specifies zero or more SFStrings enclosed in 
single quotes".

This is wrong. While it is certainly easier (most of the time) to use 
single quotes as the attribute deliminator, X3D cannot enforce that 
because in section 4.3.1 - XML encoding 
(http://www.web3d.org/documents/specifications/19776-1/V3.3/Part01/concepts.html#XMLEncoding) 
the spec states: "This clause describes the syntax of XML-encoded, 
human-readable X3D files. The syntax of X3D in terms of the XML encoding 
are presented in this part of ISO/IEC 19776. The semantics of X3D are as 
defined in ISO/IEC 19775-1 
<http://www.web3d.org/documents/specifications/19776-1/V3.3/Part01/references.html#[I19775_1]>. 
Rules for parsing and handling XML-encoded documents are defined in 
2.[XML] 
<http://www.web3d.org/documents/specifications/19776-1/V3.3/Part01/references.html#[XML]>."

This is a spec bug and needs to be reported.

I don't know of a single parse that limits the attribute-value 
deliminator to being a single-quote character.


Leonard Daly




>
>     From: Leonard Daly <Leonard.Daly at realism.com
>     <mailto:Leonard.Daly at realism.com>>
>     To: X3D Graphics public mailing list <x3d-public at web3d.org
>     <mailto:x3d-public at web3d.org>>
>     Subject: Re: [x3d-public] MFString quotes
>
>
>     ...need to be quoted. XML (as many
>     have noted) also requires that all attribute values be quoted,
>     though it
>     does not care if a single or double quote is used. So both of the
>     following are legal:
>
>       <Text string='"string 1" "string 2"'/>
>       <Text string=""string 1" "string 2""/>
>
>
> This is legal in XML but not valid x3d. X3d requires single quotes 
> surrounding the MFString attribute value.
> The only motivation for this x3d limitation seems to be that vrml 
> requires double quotes for each MFString  component, as you helpfully 
> recalled.
> But why not allow then what you provide above for XML ?
> Andreas
>
>
>
>
> _______________________________________________
> x3d-public mailing list
> x3d-public at web3d.org
> http://web3d.org/mailman/listinfo/x3d-public_web3d.org


-- 
*Leonard Daly*
3D Systems & Cloud Consultant
LA ACM SIGGRAPH Chair
President, Daly Realism - /Creating the Future/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170315/b507ba9f/attachment.html>


More information about the x3d-public mailing list