<div><br></div><div dir="auto">I think my problem is I have too many examples as I usually copy or create a test case for everything that crops up.</div><div dir="auto"><br></div><div dir="auto">As I stated in our phone call, there’s a test case at:</div><div dir="auto"><div><a href="https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/stylesheets/java/src/net/coderextreme/JsonConversion.java">https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/stylesheets/java/src/net/coderextreme/JsonConversion.java</a></div><br></div><div dir="auto">I suggest we work on that Java file first, creating a good JSON file for input from XML, validating/observing the XML that is sent to System.out after loading the JSON, and showing that X3DLoaderDOM is working by comparing output JSON and XML from X3DJSAIL to first JSON and XML.</div><div dir="auto"><br></div><div dir="auto">For initial or first XML, I suggest we pull an XML file from the X3DJSAIL test cases.</div><div dir="auto"><br></div><div dir="auto">I will install NetBeans and begin debugging the Java.   I was previously depending on I/O, but I think this one will require a debugger besides the GHD.  I can also do better GHD with NetBeans.</div><div dir="auto"><br></div><div dir="auto">I think a good thing we can do is create a simple example that evokes the problems I’ve been seeing, as previously reported.   I think that work may have been lost because I wiped out my local repo because of the lock problem I  had with subversion.   I think you might be able to find my previous debugging searching for HWPP.   If I find my copy, I will forward it.</div><div dir="auto"><br></div><div dir="auto">Looking forward to X3D-Edit testing.</div><div dir="auto"><br></div><div dir="auto">John</div><div dir="auto"><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Mon, May 3, 2021 at 2:31 PM Don Brutzman <<a href="mailto:brutzman@nps.edu">brutzman@nps.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">On 4/29/2021 12:16 AM, John Carlson wrote:<br>
> Don,<br>
> <br>
> Are we planing to do validation with ECMAScript SAI, and drop X3D JSON schema?<br>
<br>
We are planning on doing validation with JSON schema.<br>
<br>
We will then look at X3D ECMAScript standard and decide on whether to create a dedicated open source API.<br>
<br>
This has long been the hoped-for plan with your X3DJSONLD library, stabilize on patterns and then support X3D specification.<br>
<br>
> Since you accepted X3DJSONLD into X3DJSAIL, you need X3D JSON schema? Can't you use validate()?  Java code below:<br>
> <br>
>                  X3DJSONLD loader = new X3DJSONLD();<br>
> <br>
>                  JsonObject jsobj = loader.readJsonFile(new File("../examples/HelloWorldProgramOutput.json"));<br>
>                  Document document = loader.loadJsonIntoDocument(jsobj);<br>
>                  X3DLoaderDOM  xmlLoader = new X3DLoaderDOM();<br>
>                  X3D X3D0 = (X3D)xmlLoader.toX3dModelInstance(document);<br>
> <br>
>                  X3D0.validate();<br>
<br>
Seems plausible.  Not clear from your snippet what the classes are.<br>
<br>
We want JSON schema for many reasons, this is just one.  All validation and quality assurance is good.<br>
<br>
> Yes, I understand that there's  possibly a bug in this code somewhere. Someone filing an issue would be most comforting!<br>
<br>
Much more comforting is to create a test case corresponding to code, and confirmed-correct outputs checked into version control, then you know that something works and stays working.<br>
<br>
Hoping to meet monday if time permits.<br>
<br>
> Thanks!<br>
> <br>
> John<br>
> <br>
> On 4/28/21 10:52 PM, Don Brutzman wrote:<br>
>> On 4/11/2021 9:34 PM, John Carlson wrote:<br>
>>><br>
>>> Don,<br>
>>><br>
>>> Can we work together to bring X3dToES5.xslt up-to-date with X3DJSAIL<br>
>>> class names (those without ..."Object")?<br>
>><br>
>> Hi John.  Apologies but I do not understand the utility of such a conversion.<br>
>><br>
>> a. X3dToJson.xslt makes sense as we gradually finalize the X3D JSON encoding by autogenerating and confirming correctness of an X3D JSON Schema (draft 07 is current target).<br>
>><br>
>> b. We have your X3DJSONLD code but, to my knowledge, we do not have any kind of codebase that matches the X3D ECMAScript language binding.<br>
>><br>
>> * ISO/IEC CD 19777-1:2014 V3.3     X3D Language Bindings : ECMAScript (JavaScript)<br>
>>   found at <a href="https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.web3d.org%2Fstandards&amp;data=04%7C01%7Cbrutzman%40nps.edu%7C1e7e88f9be51496ba61308d90adedf65%7C6d936231a51740ea9199f7578963378e%7C0%7C0%7C637552775218168213%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=ACqjQZXOuwJMBzsIOrMNA30pSlGwEiB1leuAd8Fg5Pw%3D&amp;reserved=0" rel="noreferrer" target="_blank">https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.web3d.org%2Fstandards&amp;data=04%7C01%7Cbrutzman%40nps.edu%7C1e7e88f9be51496ba61308d90adedf65%7C6d936231a51740ea9199f7578963378e%7C0%7C0%7C637552775218168213%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=ACqjQZXOuwJMBzsIOrMNA30pSlGwEiB1leuAd8Fg5Pw%3D&amp;reserved=0</a><br>
>><br>
>> c. People (like you) are welcome to work on anything they want. We have worked so hard to create/autogenerate a fully rigorous X3D Unified Object Model (X3DUOM) with complete type and hierarchy information.  We are generating typesafe Java (X3DJSAIL) and typesafe Python (X3DPSAIL) already.<br>
>><br>
>> Not a new plan: let's do X3D JSON Schema autogeneration first, and then a matching X3D Javascript library, then update 19777-1.<br>
>><br>
>> d. Dick Puk and I keep finding lots of time-consuming issues to resolve with X3D4 in Mantis for the imminent ISO ballot.  This is a necessary delay, unfortunately.<br>
>><br>
>> Good news is that no major issues or flaws have yet been identified... we will keep working on getting things exactly right.<br>
>><br>
>>> This is used with old Nashorn code.  I don't know if anyone is using it,<br>
>>> so it may not be worth the effort.  Our efforts are probably better<br>
>>> spent on creating a node/es6x3d stylesheet/typesafe library.<br>
>><br>
>> Nashorn is dead.  Please advise if I can remove it completely from X3DJSAIL version control... If you need anything there, please copy/remove it.<br>
>><br>
>> We have been moving slowly but moving, through steps a-b-c-d above. Other X3D4 updates await as well.  I certainly have no time for anything other than X3D4 critical path, it will keep us busy all year.<br>
>><br>
>>> I'm running a new version through my donlocal.sh bash script.  We shall see!<br>
>>><br>
>>> Thanks!<br>
>>><br>
>>> John<br>
>><br>
>> Thanks for your efforts.<br>
>><br>
>> all the best, Don<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="https://nam10.safelinks.protection.outlook.com/?url=http%3A%2F%2Fweb3d.org%2Fmailman%2Flistinfo%2Fx3d-public_web3d.org&amp;data=04%7C01%7Cbrutzman%40nps.edu%7C1e7e88f9be51496ba61308d90adedf65%7C6d936231a51740ea9199f7578963378e%7C0%7C0%7C637552775218168213%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=E9W1%2Fj0w6%2FIIzVKbjtSlk20mRr0jIG5xPHB%2FIYGr8RI%3D&amp;reserved=0" rel="noreferrer" target="_blank">https://nam10.safelinks.protection.outlook.com/?url=http%3A%2F%2Fweb3d.org%2Fmailman%2Flistinfo%2Fx3d-public_web3d.org&amp;data=04%7C01%7Cbrutzman%40nps.edu%7C1e7e88f9be51496ba61308d90adedf65%7C6d936231a51740ea9199f7578963378e%7C0%7C0%7C637552775218168213%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=E9W1%2Fj0w6%2FIIzVKbjtSlk20mRr0jIG5xPHB%2FIYGr8RI%3D&amp;reserved=0</a><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>
</blockquote></div></div>