<div dir="ltr">More news:<div><br></div><div>We are working on a dual implementation of nodejs-X3DJSAIL stylesheets and serializers.  Specifically, the technology that binds a high level node.js API on top of X3DJSAIL is called npm-java.  While some of our code works, there is some that doesn't.</div><div><br></div><div>On github, you can follow many of our examples under:</div><div><br></div><div><a href="https://github.com/coderextreme/X3DJSONLD/tree/master/src/main/node/net">https://github.com/coderextreme/X3DJSONLD/tree/master/src/main/node/net</a>  <br></div><div><br></div><div>the coderextreme/data folder contains code from my NodeSerializer.js, and the x3djsonld/data folder is from my X3dToNodeJS.xslt (perhaps out of date).</div><div><br></div><div>Here are the results from running my abox example:</div><div><br></div><div>$ node net/coderextreme/data/abox.js<br>Warning: ../data/abox.new.x3d does not meet suggested X3D naming conventions, continuing...<br>Warning: toFileX3D() is overwriting prior file ../data/abox.new.x3d</div><div><br></div><div>[ success ]<br><br>$ node net/x3djsonld/data/abox.js<br>abox execution self-validation test results: TypeError: meta.getName is not a function</div><div><br></div><div>[ failure ???? didn't check for file ]<br><br></div><div>I'm asking Don to look into the X3dToNodeJS.xslt stylesheet.  Don installed nodejs on his platform today, so perhaps we can get a little more headway on this.</div><div><br></div><div><a href="http://www.web3d.org/x3d/stylesheets/java/node/examples/abox.js">www.web3d.org/x3d/stylesheets/java/node/examples/abox.js</a><br></div><div><br></div><div>run like</div><div><br></div><div>node.exe abox.js</div><div><br></div><div>or</div><div>node.exe examples/abox.js</div><div><br></div><div>Thanks!</div><div><br></div><div>We'd like to provide at least one working nodejs environment, albiet one that runs with X3DJSAIL for now. Other implementations such as a XML to X_ITE SAI converter and ES6 are still experimental or unfinished.  Higher priority items appear to be my DOM2JSONSerializer.js for the browser, and the ProtoExpander.js debugging.  Would someone want an XML to X_ITE SAI converter?   Just asking!</div><div><br></div><div>Thanks,</div><div><br></div><div>John</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 25, 2020 at 7:50 PM John Carlson <<a href="mailto:yottzumm@gmail.com">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">1.   We will only be promoting highly experimental use of a typesafe ES6 API on the server, at least until we research minifying or client-side caching methods. 16MB is too large for downloads. Reducing the implementations in interface code may help.  We can also research interfaces with TypeScript.<div><br></div><div>2.  Don asked for examples of the ProtoExpander running. Note that 8 of these do not generate good JavaScript, with the script processor. I did not want to present JavaScript examples, because the API is extremely experimental, but here goes:</div><div><br></div><div>Generated (run through protoexpander) examples are here:</div><div><br></div><div><a href="https://github.com/coderextreme/X3DJSONLD/tree/master/src/main/ppp" target="_blank">https://github.com/coderextreme/X3DJSONLD/tree/master/src/main/ppp</a> </div><div><br></div><div>the *.json file have been run  through the ProtoExpander (no Protos are present) and still contain the old script, I believe.  The *.js is expanded script, with major modifications.<br></div><div><br></div><div>Here's the original source. Note the files in the ppp file are ones with Protos originally in them:</div><div><br></div><div><a href="https://github.com/coderextreme/X3DJSONLD/tree/master/src/main/data" target="_blank">https://github.com/coderextreme/X3DJSONLD/tree/master/src/main/data</a><br></div><div><br></div><div>If you want try this yourself, use code similar to this script:</div><div><br></div><div><a href="https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/shell/runppp.sh" target="_blank">https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/shell/runppp.sh</a> </div><div><br></div><div>(use this script at your own risk--I don't know all the places it dumps files).</div><div><br></div><div>Here's an experimental script with XML processing:</div><div><br></div><div><a href="https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/node/CompleteXMLPrototypeExpander.js" target="_blank">https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/node/CompleteXMLPrototypeExpander.js</a> </div><div><br></div><div>I haven't run this for a long time.</div><div><br></div><div>Here's the ProtoPreProcessor file which runs the Proto Expander on a list of files:</div><div><br></div><div> <a href="https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/node/PPP.js" target="_blank">https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/node/PPP.js</a><br></div><div><br></div><div>Debugging is more helpful than "This doesn't work!"</div><div><br></div><div>Here's my current version of the ProtoExpander:</div><div><br></div><div><a href="https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/node/PrototypeExpander.js" target="_blank">https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/node/PrototypeExpander.js</a></div><div><br></div><div>Thanks!</div><div> </div><div>John <br></div><div><br></div><div><br></div><div><br></div></div>
</blockquote></div>