<div dir="ltr"><div>Apologies in advance if the following comes across as a bit of rigid thinking for a corner case but unfortunately there is now an example. </div><div>A larger standard question is how to correctly process a fieldValue statement with a default value for the value attribute.</div><div>The XML schema for fieldValue says that the default value for the value attribute is "", the empty string. Relying on that default is rarely, perhaps never, a useful use of fieldValue but is allowed.</div><div><br></div><div>Scenario A)</div><div>In the case the field for which such a fieldValue is given is of type SFTime, this would strictly mean that the value is invalid since the "" is not an encoding of a floating point number and does not pass the regex test. Therefore processing could become undefined and should be halted.</div><div><br></div><div>Scenario B)</div><div>Another, perhaps less strict but more useful interpretation is that the empty string for SFTime signals the lack of a value and that therefore a default value for the SFTime field should be adopted. This default could be an initial -1 as the Tooltips suggest, and would likely be overwritten.</div><div><br></div><div>A) is stricter and follows the rules more literally. B) is perhaps more often what authors intend but may need some clarification in the specification.</div><div><br></div><div>This applies only to the XML encoding.</div><div><br></div><div>I think the XML encoding for fieldValue should require one of: an existing value attribute, or at least one child node (as a XFNode value). Not sure if the XML schema could handle that.</div><div><br></div><div>Would you prefer A) or B) ? </div><div><br></div><div>Personally A) with some error messages but some X3D browsers accept B).</div><div><br></div><div>Thanks, Andreas</div><div><br></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Sun, Feb 2, 2025 at 4:58 PM Andreas Plesch <<a href="mailto:andreasplesch@gmail.com">andreasplesch@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I think x3dom, reasonably, expects a value for the fieldValue nodes:</div><div><br></div><div>For example:</div><div><br></div><fieldValue name="startTime" /><div><br></div><div>and others.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Feb 2, 2025 at 5:42 AM John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Andreas, Joe,</div><div><br></div><div>Reset Button, Reset_Clock added.</div><div><br></div><div>See attached zip for details, or visit link;</div><div><br></div><div><a href="https://create3000.github.io/x_ite/playground/?url=https://raw.githubusercontent.com/coderextreme/ci2had/refs/heads/main/resources/CleanedYouClocks.x3d" target="_blank">https://create3000.github.io/x_ite/playground/?url=https://raw.githubusercontent.com/coderextreme/ci2had/refs/heads/main/resources/CleanedYouClocks.x3d</a></div><div><br></div><div>For some reason, this link doesn't show the live scene?</div><div><br></div><div><a href="https://andreasplesch.github.io/Library/Viewer/index.html?url=https://raw.githubusercontent.com/coderextreme/ci2had/refs/heads/main/resources/CleanedYouClocks.x3d" target="_blank">https://andreasplesch.github.io/Library/Viewer/index.html?url=https://raw.githubusercontent.com/coderextreme/ci2had/refs/heads/main/resources/CleanedYouClocks.x3d</a></div><div><br></div><div>Puzzled, haven't researched it yet. Looks good in Sunrize and X_ITE, will try FreeWRL next.</div><div><br></div><div>John</div><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"><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"><div dir="auto"><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
</blockquote></div></div>
</blockquote></div>
</blockquote></div></div>
</blockquote></div><div><br clear="all"></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Andreas Plesch<br>Waltham, MA 02453</div></div></div>
</blockquote></div><div><br clear="all"></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Andreas Plesch<br>Waltham, MA 02453</div></div></div>