ls -d "$@" | grep -v intermediate | grep -v "\.new" | xargs -P $PROCESSORS java ${CLASS} ${OVERWRITE} --${STYLESHEET} -json Install net.coderextreme.RunSaxon, or if already installed, hit return after restarting ./../data/HelloWorld.json ./../data/HelloWorldCommented.json ./../data/HelloWorldMinimal.json npm install -g xslt3 changed 6 packages, and audited 7 packages in 1s 3 high severity vulnerabilities To address issues that do not require attention, run: npm audit fix Some issues need review, and may require choosing a different dependency. Run `npm audit` for details. Work in progress. Look at stylesheetout.txt for results xslt3 -xsl:../lib/stylesheets/X3dToJson.xslt -s:../data/HelloWorld.x3d -o:../data/HelloWorld.new.json2 diff -w ../data/HelloWorld.json ../data/HelloWorld.new.json2 124,213d123 < }, < { "WorldInfo": < { < "@info":["Example scene to illustrate a simple X3D model"], < "@title":"Hello World!" < } < }, < { "Group": < { < "-children":[ < { "Viewpoint": < { < "@DEF":"ViewUpClose", < "@centerOfRotation":[0,-1,0], < "@description":"Hello world!", < "@position":[0,-1,7] < } < }, < { "Transform": < { < "@rotation":[0,1,0,3], < "-children":[ < { "Shape": < { < "-geometry": < { "Sphere": < { < } < }, < "-appearance": < { "Appearance": < { < "-material": < { "Material": < { < "@DEF":"MaterialLightBlue", < "@diffuseColor":[0.1,0.5,1] < } < }, < "-texture": < { "ImageTexture": < { < "@DEF":"ImageCloudlessEarth", < "@url":["earth-topo.png","earth-topo.jpg","earth-topo-small.gif","https://www.web3d.org/x3d/content/examples/Basic/earth-topo.png","https://www.web3d.org/x3d/content/examples/Basic/earth-topo.jpg","https://www.web3d.org/x3d/content/examples/Basic/earth-topo-small.gif"] < } < } < } < } < } < } < ] < } < }, < { "Transform": < { < "@translation":[0,-2,0], < "-children":[ < { "Shape": < { < "-geometry": < { "Text": < { < "@DEF":"TextMessage", < "@string":["Hello","world!"], < "-fontStyle": < { "FontStyle": < { < "@justify":["MIDDLE","MIDDLE"] < } < } < } < }, < "-appearance": < { "Appearance": < { < "-material": < { "Material": < { < "@USE":"MaterialLightBlue" < } < } < } < } < } < } < ] < } < } < ] < } xslt3 -xsl:../lib/stylesheets/X3dToJson.xslt -s:../data/HelloWorldCommented.x3d -o:../data/HelloWorldCommented.new.json2 diff -w ../data/HelloWorldCommented.json ../data/HelloWorldCommented.new.json2 79,83d78 < { "WorldInfo": < { < "@title":"Hello world!" < } < }, 86,242d80 < }, < { "Group": < { < "-children":[ < { < "#comment":"Viewpoint begin" < }, < { "Viewpoint": < { < "@DEF":"ViewUpClose", < "@centerOfRotation":[0,-1,0], < "@description":"Hello world!", < "@position":[0,-1,7] < } < }, < { < "#comment":"Viewpoint complete, Transform begin" < }, < { "Transform": < { < "@rotation":[0,1,0,3], < "-children":[ < { < "#comment":"Shape begin" < }, < { "Shape": < { < "-children":[ < { < "#comment":"Sphere begin" < }, < { < "#comment":"Sphere complete, Appearance begin" < }, < { < "#comment":"Appearance complete" < } < ], < "-geometry": < { "Sphere": < { < } < }, < "-appearance": < { "Appearance": < { < "-children":[ < { < "#comment":"Material begin" < }, < { < "#comment":"Material complete, ImageTexture begin" < }, < { < "#comment":"ImageTexture complete" < } < ], < "-material": < { "Material": < { < "@DEF":"MaterialLightBlue", < "@diffuseColor":[0.1,0.5,1] < } < }, < "-texture": < { "ImageTexture": < { < "@DEF":"ImageCloudlessEarth", < "@url":["earth-topo.png","earth-topo.jpg","earth-topo-small.gif","https://www.web3d.org/x3d/content/examples/Basic/earth-topo.png","https://www.web3d.org/x3d/content/examples/Basic/earth-topo.jpg","https://www.web3d.org/x3d/content/examples/Basic/earth-topo-small.gif"] < } < } < } < } < } < }, < { < "#comment":"Shape complete" < } < ] < } < }, < { < "#comment":"Transform complete, Transform begin" < }, < { "Transform": < { < "@translation":[0,-2,0], < "-children":[ < { < "#comment":"Shape begin" < }, < { "Shape": < { < "-children":[ < { < "#comment":"Text begin" < }, < { < "#comment":"Text complete, Appearance begin" < }, < { < "#comment":"Appearance complete" < } < ], < "-geometry": < { "Text": < { < "@DEF":"TextMessage", < "@string":["Hello","world!"], < "-children":[ < { < "#comment":"FontStyle begin" < }, < { < "#comment":"FontStyle complete" < } < ], < "-fontStyle": < { "FontStyle": < { < "@justify":["MIDDLE","MIDDLE"] < } < } < } < }, < "-appearance": < { "Appearance": < { < "-children":[ < { < "#comment":"Material begin" < }, < { < "#comment":"Material complete" < } < ], < "-material": < { "Material": < { < "@USE":"MaterialLightBlue" < } < } < } < } < } < }, < { < "#comment":"Shape complete" < } < ] < } < }, < { < "#comment":"Transform complete" < } < ] < } xslt3 -xsl:../lib/stylesheets/X3dToJson.xslt -s:../data/HelloWorldMinimal.x3d -o:../data/HelloWorldMinimal.new.json2 Error: IllegalChildNodeFieldNameNotFound no containerField or field name found for the X3D JSON object. Check spelling of node. $elementName=Text, $parentName=Shape Please report this error to x3d-public@web3d.org - thanks for your help improving X3D Quality Assurance (QA). diff -w ../data/HelloWorldMinimal.json ../data/HelloWorldMinimal.new.json2 97c97,99 < }, --- > } > ], > "-children":[ 99,100c101 < { < "-geometry": --- > "-IllegalChildNodeFieldNameNotFound":[ 106c107 < } --- > ] Finished. Look at stylesheetout.txt for results