<div dir="ltr"><div><div><div><div><div><div>Thanks Leonard.<br></div><br></div>While the multiple child form would be cleaner, it would be a bigger change and backwards incompatible. But it would help, I agree.<br><br></div>What Yves and me are suggesting is a much smaller, backwards compatible adjustment by allowing outer double quotes in addition to single quotes, following XML.<br><br></div>Now: geoSystem = ' "GD" "CC" '<br></div>also allowed now(?): geoSystem = ' &quot;GD&quot; &quot;CC&quot; ' (since the spec. only mentions double quotes which may be represented by its XML entity) <br><br></div>Suggestion: relax to: " &quot;GD&quot; &quot;CC&quot; "<br><div><div><div><div><div><br></div><div>I also agree that entities are ugly but that is true for any XML document. <br></div><div><br></div><div>Another idea may be to allow of use some other rarely used character as delimiter for MFStrings such as bar | :<br></div><div>geoSystem = ' |GD| |CC| '<br></div><div><br></div><div>-Andreas<br></div><div><div><div><br>Date: Tue, 14 Mar 2017 19:57:23 -0700<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
From: Leonard Daly <<a href="mailto:Leonard.Daly@realism.com">Leonard.Daly@realism.com</a>><br>
To: <a href="mailto:x3d-public@web3d.org">x3d-public@web3d.org</a><br>
Subject: Re: [x3d-public] MFString quotes<br>
Message-ID: <<a href="mailto:87202915-313c-5a4b-56ae-3530eae48261@realism.com">87202915-313c-5a4b-56ae-<wbr>3530eae48261@realism.com</a>><br>
Content-Type: text/plain; charset="windows-1252"; Format="flowed"<br>
<br>
Andreas,<br>
<br>
> <a href="http://www.web3d.org/documents/specifications/19776-1/V3.3/Part01/EncodingOfFields.html#SFString" rel="noreferrer" target="_blank">http://www.web3d.org/<wbr>documents/specifications/<wbr>19776-1/V3.3/Part01/<wbr>EncodingOfFields.html#SFString</a><br>
> <<a href="http://www.web3d.org/documents/specifications/19776-1/V3.3/Part01/EncodingOfFields.html#SFString" rel="noreferrer" target="_blank">http://www.web3d.org/<wbr>documents/specifications/<wbr>19776-1/V3.3/Part01/<wbr>EncodingOfFields.html#SFString</a><wbr>><br>
><br>
> clearly states:<br>
> The MFString specifies zero or more SFStrings enclosed in single<br>
> quotes (e.g., '"string1" "string2"').<br>
><br>
> ...<br>
><br>
> This makes it hard to conform exactly to the X3D XML encoding<br>
> standard. I am not sure why X3D imposes this use of quotes.  XML<br>
> allows for both single and double quotes as outer quotes, and the<br>
> quotes used in the value could still be specified as double quotes.<br>
> They just need to be escaped as entity if double quotes are used as<br>
> outer quotes.<br>
<br>
<br>
This was done to be like VRML where each item had to be double-quoted.<br>
There was lots of discussion at the time, especially if an MFString<br>
contained exactly one value. (is "value" and 'value' allowed or does it<br>
need to be '"value"'?).<br>
<br>
After many years of seeing the confusion this is generating, I would<br>
like to see a child form used. For example:<br>
<br>
<Inline><br>
   <url='test.x3d'/><br>
   <url='test.x3dv'/><br>
   <url='test.vrml'/><br>
</Inline><br>
<br>
or<br>
<br>
<Inline><br>
   <url>test.x3d</url><br>
   <url>test.x3dv</url><br>
   <url>test.vrml</url><br>
</Inline><br>
<br>
<br>
instead of<br>
<br>
<Inline url='"test.x3d" "test.x3dv" "test.vrml"'></Inline><br>
<br>
<br>
If the child notation is not acceptable, then at least drop the<br>
doubling-up of the quotations when there is only a single value. I think<br>
the biggest advantage of the second option is that the element values<br>
can be put into a CDATA block. Really useful if the string (url or<br>
otherwise) contains special or non-Latin characters. URLs are not<br>
required to use Latin characters and expressing them as HTML entities<br>
can be a real mess.<br>
<br>
Leonard Daly<br>
<br>
<br>
<br>
<br>
><br>
>  x3d browsers may behave like this anyways if they use a reasonable<br>
> XML parser.<br>
><br>
> So I would like to raise if it would be possible to relax the XML<br>
> encoding a bit to allow use of standard XML serializer ?<br>
><br>
> Andreas<br>
><br>
><br>
><br>
> ______________________________<wbr>_________________<br>
> x3d-public mailing list<br>
> <a href="mailto:x3d-public@web3d.org">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/<wbr>listinfo/x3d-public_web3d.org</a><br>
<br>
<br>
--<br>
*Leonard Daly*<br>
3D Systems & Cloud Consultant<br>
LA ACM SIGGRAPH Chair<br>
President, Daly Realism - /Creating the Future/<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170314/6610ebe9/attachment-0001.html" rel="noreferrer" target="_blank">http://web3d.org/pipermail/<wbr>x3d-public_web3d.org/<wbr>attachments/20170314/6610ebe9/<wbr>attachment-0001.html</a>><br>
<br></blockquote></div></div></div></div></div></div></div></div></div></div>