<div dir="ltr">I am writing this for anyone finding issues with Clojure JSON output using X3DJSAIL, for example, some (JSON based) JavaScript code fails in Sunrize:<div>====================================================<div><br></div><div>"    translation = new SFVec3f(\ttranslation.x + velocity.x, translation.y + velocity.y,<br>translation.z + velocity.z);",<br>"    scale = new SFVec3f(scale.x + scalvel.x, scale.y + scalvel.y, scale.z + scalvel.z);",<br>"    // if you get to far away or too big, explode",<br>"    if ( Math.abs(translation.x) &gt; 256) {",<br>"\ttranslation.x = 0;",<br>"\tinitialize();",<br>"    }",<br>"    if ( Math.abs(translation.y) &gt; 256) {",<br>"\ttranslation.y = 0;",<br>"\tinitialize();",<br>"    }",<br>"    if ( Math.abs(translation.z) &gt; 256) {",<br>"\ttranslation.z = 0;",<br>"\tinitialize();",<br>"    }",<div><br></div><div>==========================================</div><div>Java JSON output is very nice!</div><div>==========================================</div><div>"    translation = new SFVec3f(\ttranslation.x + velocity.x, translation.y + velocity.y, translation.z + velocity.z);",<br>"    scale = new SFVec3f(scale.x + scalvel.x, scale.y + scalvel.y, scale.z + scalvel.z);",<br>"    // if you get to far away or too big, explode",<br>"    if ( Math.abs(translation.x) > 256) {",<br>"\ttranslation.x = 0;",<br>"\tinitialize();",<br>"    }",<br>"    if ( Math.abs(translation.y) > 256) {",<br>"\ttranslation.y = 0;",<br>"\tinitialize();",<br>"    }",<br>"    if ( Math.abs(translation.z) > 256) {",<br>"\ttranslation.z = 0;",</div><div><br></div><div><br></div><div>===================================================</div></div></div><div><br></div><div>Note the differences between > and &gt;. Plus the added newlines for long lines using the wrong stylesheet engine or with bad configuration?</div><div><br></div><div>I was able to fix the problem by adding the following code:</div><div><br></div><div>(org.web3d.x3d.jsail.ConfigurationProperties/setXsltEngine org.web3d.x3d.jsail.ConfigurationProperties/XSLT_ENGINE_NATIVE_JAVA)<br>(org.web3d.x3d.jsail.ConfigurationProperties/setDeleteIntermediateFiles false)<br>(org.web3d.x3d.jsail.ConfigurationProperties/setStripTrailingZeroes true)<br>(org.web3d.x3d.jsail.ConfigurationProperties/setStripDefaultAttributes true)</div><div><br></div><div>I'm assuming that there's something up with the setup of the Saxon (default?) stylesheet engine.</div><div><br></div><div>I will try to get some example code out ASAP.  Plus I want to migrate the configuration to other X3DJSONLD Serializers.</div><div><br></div><div>I will also work on downloading a new X3DJSAIL after running some more diagnostics.</div><div><br></div><div>! defaults don't work !</div><div><br></div><div>John</div><div><br></div></div>