[x3d-public] move validateSelf() from X3dToJava.xslt to X3DObject.java class in X3DJSAIL

Don Brutzman brutzman at nps.edu
Sun May 21 01:05:11 PDT 2017

On 5/18/2017 9:40 PM, John Carlson wrote:
> See subject.  Seems like a waste to repeat the code everywhere, when it could be shared.  I could use it in my serializer as well…  I would like validateSelf() from X3dToJava.xslt in X3DJSAIL’s X3DObject.java.  You can keep the call to validate self in the main() of course.

sounds very logical.  will try refactoring as you suggest in a future session.

> Also attached is the X3dToES5.xslt (Nashorn) code generator.  You can download X3Dautoclass.js from https://coderextreme.net/X3DJSONLD/  It takes the same parameters as X3dToJava.xslt, but does not use the package (but it should, working on namespaces, I think).
> This works with X3DJSAIL.
> Happy Nashing!
> John

hoping i understand... please confirm.  This takes an .x3d scene and converts it to javascript, utilizing X3Dautoclass.js to run?  presumably can run in node.js?

hoping you might provide an example from beginning to end.  HelloWorld.x3d -> HelloWorldNashorn.js perhaps?

looking forward to understanding better, and preparing for Web3D 2017 Master Class on these topics.  TIA.

all the best, Don
Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman at nps.edu
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman

More information about the x3d-public mailing list