<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">Begin forwarded message:</div><br class="Apple-interchange-newline"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">From: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">John Carlson <<a href="mailto:yottzumm@gmail.com" class="">yottzumm@gmail.com</a>><br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">Date: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">November 2, 2015 at 12:26:06 AM CST<br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">To: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">Don Brutzman <<a href="mailto:brutzman@nps.edu" class="">brutzman@nps.edu</a>><br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">Cc: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">X3D Graphics public mailing list <<a href="mailto:x3d-public@web3d.org" class="">x3d-public@web3d.org</a>><br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">Subject: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class=""><b class="">Re: Modifications to X3D XML Schema to support JSON</b><br class=""></span></div><br class=""><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I discovered this page for setting the number of items in a list and the minimum and maximum length of a list.  I don’t know if it works or is a microsoft only feature.   When I send this through a Jsonix mapping things work, but I haven’t validated the documents agains XSD yet.   Is there a reason why this is not used in X3D XSD?  Does it create a text node or require a text node?   It is highly likely that I will create a custom XSD and check it into my x3djson repository.  I am not proposing this as a modification to the XSD yet.  It requires more research and expertise.  There may be an alternate X3D XSD for working with JSON.  That is all.  Perhaps this has been done?<div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class=""><a href="https://msdn.microsoft.com/en-us/library/ms256162(v=vs.110).aspx" class="">https://msdn.microsoft.com/en-us/library/ms256162(v=vs.110).aspx</a></div><div class=""><br class=""></div></div><div class="">Thanks,</div><div class=""><br class=""></div><div class="">John</div><div class=""><div class=""><blockquote type="cite" class=""><div class="">On Nov 1, 2015, at 11:38 PM, John Carlson <<a href="mailto:yottzumm@gmail.com" class="">yottzumm@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">What I discovered was if the xs:restriction node was replaced with an xs:list node of the correct type, then arrays would be generated.  You may wish to do this yourself if you are using XML Schema to produce JSON (with JAXB + Jackson or some other method).<br class=""><br class="">Is there some way to express the number of elements in a list?<br class="">John<br class=""><blockquote type="cite" class="">On Oct 29, 2015, at 1:08 AM, John Carlson <<a href="mailto:yottzumm@gmail.com" class="">yottzumm@gmail.com</a>> wrote:<br class=""><br class="">It may be as simple as adding an <xs:list … under the MFInt32, MFFloat, MFDouble, MFRotation, MFColor, MFColorRGBA, MFVec2d, MFVec2f, MFVec3d, MFVec3f, MFVec4d, MFVec4f, MFMatrix3f,  MFMatrix3d, MFMatrix4f, and MFMatrix4d simpleTypes. I’m not really sure.  Experts can tell.  This is already done for booleans, strings and time.   I’m not sure what the performance penalty might be, but I think we’d get a speed up in JavaScript.  It’s also time to think about typed arrays and how to smoothly integrate with them.<br class=""><br class="">Thanks,<br class=""><br class="">John<br class=""><blockquote type="cite" class="">On Oct 29, 2015, at 12:40 AM, John Carlson <<a href="mailto:yottzumm@gmail.com" class="">yottzumm@gmail.com</a>> wrote:<br class=""><br class="">My JSONIX mapper may be able to convert a string of numbers to an array of numbers in JSON if the right thing is done in X3D XML Schema.  Similar to string, url and justify attributes (which create an array of strings).  I am not familiar with X3D XML Schema.<br class=""><br class="">John<br class=""></blockquote><br class=""></blockquote><br class=""></div></div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""></body></html>