<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Roy, All of my comments are or can be
public.<br>
<br>
Andreas & Yves,<br>
<br>
I understand what you are trying to do -- '"string1" "string2"'
(in any form including HTML entities) is messy and a bit unwieldy.
The problem happens (most obvious in the Text node) when the
individual elements of MFString contain spaces and single quotes
(apostrophes). If you wanted to display the string (in a Text
node):<br>
<br>
<blockquote>She didn't jump.<br>
</blockquote>
<br>
Then you do something like '"She didn't jump."' to
indicate a single element.<br>
<br>
If the above string is preceded by:<br>
<br>
<blockquote>He yelled "Don't Jump!"<br>
</blockquote>
so the set is:<br>
<br>
<blockquote>He yelled "Don't Jump!"<br>
She didn't jump.<br>
<br>
</blockquote>
You need to encode the whole thing as:<br>
<br>
<br>
<blockquote>
'"He yelled "Don't Jump!"" "She
didn't jump."'<br>
</blockquote>
Removing the quote marks around each individual element would
break up the element structure.<br>
<br>
And yes my proposal is not strictly backwards compatible; however,
there will be so much change from V3.x to V4 that conversion will
be required anyway. Why not do it right?<br>
<br>
<br>
Leonard Daly<br>
<br>
<br>
<br>
<br>
</div>
<blockquote
cite="mid:CAKdk67skqRT+r8W67RTxNXfeN5XrUrDNDa_v0hz+Vboun1y3yg@mail.gmail.com"
type="cite">
<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 = ' "GD"
"CC" ' (since the spec. only mentions double
quotes which may be represented by its XML entity) <br>
<br>
</div>
Suggestion: relax to: " "GD"
"CC" "<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
moz-do-not-send="true"
href="mailto:Leonard.Daly@realism.com">Leonard.Daly@realism.com</a>><br>
To: <a moz-do-not-send="true"
href="mailto:x3d-public@web3d.org">x3d-public@web3d.org</a><br>
Subject: Re: [x3d-public] MFString quotes<br>
Message-ID: <<a moz-do-not-send="true"
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 moz-do-not-send="true"
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 moz-do-not-send="true"
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 moz-do-not-send="true"
href="mailto:x3d-public@web3d.org">x3d-public@web3d.org</a><br>
> <a moz-do-not-send="true"
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 moz-do-not-send="true"
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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
x3d-public mailing list
<a class="moz-txt-link-abbreviated" href="mailto:x3d-public@web3d.org">x3d-public@web3d.org</a>
<a class="moz-txt-link-freetext" href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a>
</pre>
</blockquote>
<br>
<p><br>
</p>
<div class="moz-signature">-- <br>
<font class="tahoma,arial,helvetica san serif" color="#333366">
<font size="+1"><b>Leonard Daly</b></font><br>
3D Systems & Cloud Consultant<br>
LA ACM SIGGRAPH Chair<br>
President, Daly Realism - <i>Creating the Future</i>
</font></div>
</body>
</html>