<div dir="ltr"><div>This was discussed in the past, as far as I remember. I don't think it's a good idea to add the proposed exception to the spec (to treat MFString content, without additional quotes inside, as valid, and just treat it as a single string).<br></div><div><br></div><div>MFString is encoded differently than SFString in XML encoding. Tools and authors should be aware of it. (And we should explain it precisely in the spec.)<br></div><div><br></div><div>- In MFString, you have to surround each part by additional quotes, <br></div><div>- The backslashes interpretation is different in MFString ("backslashes are NOT used for escaping inside SFString", but they are used in MFString).</div><div><br></div><div>Adding a special rule, to allow to treat such (currently incorrect) MFString content as valid, would add to the confusion IMHO. It is already confusing because  we have not applied, as far as I know, the spec clarification that we wrote on a few years ago -- it is on <a href="https://github.com/michaliskambi/x3d-tests/wiki/Clarify-the-usage-of-quotes-and-backslashes-for-MFString-and-SFString-in-XML-encoding">https://github.com/michaliskambi/x3d-tests/wiki/Clarify-the-usage-of-quotes-and-backslashes-for-MFString-and-SFString-in-XML-encoding</a> . But at least that proposed clarification is consistent right now with what existing browsers are doing.</div><div><br></div><div>Regards,</div><div>Michalis<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">sob., 4 lip 2020 o 22:57 Don Brutzman <<a href="mailto:brutzman@nps.edu">brutzman@nps.edu</a>> napisał(a):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">* Mantis 1320: relax requirement for quoted single-string value in MFString array<br>
   <a href="https://www.web3d.org/member-only/mantis/view.php?id=1320" rel="noreferrer" target="_blank">https://www.web3d.org/member-only/mantis/view.php?id=1320</a><br>
   Specification: 19776-1 (X3D XML Encoding)<br>
<br>
A superfluous, confusing and error prone requirement in XML Encoding is to always require quotation marks around every string value, including when using a singleton string as part of an MFString array.<br>
<br>
This requirement can be relaxed without ambiguity, provides reduced difficulty for converters and parsers, and has no backwards-compatibility issues for model content. Relaxing this requirement also makes MFString more compatible with SFString.<br>
<br>
Suggested specification prose addition:<br>
<br>
* "Unquoted MFString values are treated as a singleton SFString value."<br>
<br>
Corresponding prose removal:<br>
================<br>
NOTE The construct "string3" is not a valid instance of an MFString. Such an MFString would be properly specified as '"string3"'<br>
================<br>
<br>
TODO need to check other encodings and language bindings to ensure this relaxation is similarly applied.<br>
<br>
Specification reference:<br>
<br>
* X3D XML encoding, 5 Encoding of fields, 5.15 SFString and MFString<br>
   <a href="https://www.web3d.org/documents/specifications/19776-1/V3.3/Part01/EncodingOfFields.html#SFString" rel="noreferrer" target="_blank">https://www.web3d.org/documents/specifications/19776-1/V3.3/Part01/EncodingOfFields.html#SFString</a><br>
<br>
[This long-standing issue may have a prior Mantis entry, but I was not able to find it.  Cross-reference issues welcome.]<br>
<br>
all the best, Don<br>
-- <br>
Don Brutzman  Naval Postgraduate School, Code USW/Br       <a href="mailto:brutzman@nps.edu" target="_blank">brutzman@nps.edu</a><br>
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149<br>
X3D graphics, virtual worlds, navy robotics <a href="http://faculty.nps.edu/brutzman" rel="noreferrer" target="_blank">http://faculty.nps.edu/brutzman</a><br>
<br>
_______________________________________________<br>
x3d-public mailing list<br>
<a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a><br>
<a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" rel="noreferrer" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a><br>
</blockquote></div>