<div dir="ltr">First XML:<div><br></div><div>$ node app.mjs<br>(node:7316) ExperimentalWarning: The ESM module loader is experimental.<br><X3D profile="Immersive" version="4.0"><head></head><Scene></Scene></X3D><br></div><div><br></div><div>$ cat app.mjs<br>"use strict"<br><br>import X3D from './x3d.mjs';<br><br>var sg = new X3D();<br>console.log(sg.toXMLNode());<br></div><div><br></div><div><br></div><div>Woohoo!</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 29, 2020 at 6:46 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"><a href="https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/stylesheets/es6/" target="_blank">https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/stylesheets/es6/</a><br><div><br></div><div>It's SAI non-compliant for now. Contributions welcome.</div><div><br></div><div>I just have the beginnings of the toXML stuff done. It needs work.</div><div><br></div><div>Basically, I got something that compiled, so I checked it in.</div><div><br></div><div>It's kind of up to the community how this goes.</div><div><br></div><div>Sorry about all the bitching.</div><div><br></div><div>Sorry the generation is in python.  If someone wants to translate the python to JavaScript, I'm open to it.</div><div><br></div><div>Test cases are welcome.  I would recommend creating a X3dToES6.xslt (no, I don't do XSLT).</div><div><br></div><div>Note that ES6 has single superclass inheritance to my knowledge.  If someone wants to program mixins, I'm open to that.</div><div><br></div><div>Note that if you modify x3d.js, your changes will get wiped out.</div><div><br></div><div>John</div></div>
</blockquote></div>