<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">The X3dToJson.xslt script failing on several scenes motivated this message.<div class=""><br class=""></div><div class="">I have written a script that I have been able to convert a couple of Jsonix generated JSON (using my custom XML schema) files into X3D JSON.<div class=""><br class=""></div><div class="">The script is called JSON2JSON.js and is here: <a href="https://github.com/coderextreme/x3djson/blob/master/JSON2JSON.js" class="">https://github.com/coderextreme/x3djson/blob/master/JSON2JSON.js</a>  The license can be found at <a href="https://github.com/coderextreme/x3djson/LICENSE" class="">https://github.com/coderextreme/x3djson/LICENSE</a></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">A previously untranslatable X3D XML file, due to memory consumption, has been converted to X3D JSON.  You can find it here:</div><div class=""><br class=""></div><div class=""><a href="https://github.com/coderextreme/x3djson/blob/master/IcosahedronSubdivisionLevel5.json?raw=true" class="">https://github.com/coderextreme/x3djson/blob/master/IcosahedronSubdivisionLevel5.json?raw=true</a></div><div class=""><br class=""></div><div class="">This has successfully been loaded into my X3D JSON loader.</div><div class=""><br class=""></div><div class="">I am not sure I can offer a general case solution because Jsonix generates strange names that I have to replace (see mapp in the script).  I have been able to translate 2 files.</div><div class=""><br class=""></div><div class="">If we cannot fix the memory consumption issue for the style sheet, I can translate the X3D XML with my script and modify the script per file if necessary.</div><div class=""><br class=""></div><div class="">I had to get the X3D XML file to translate from SVN.  <span style="font-family: Menlo; font-size: 11px;" class="">X3dForAdvancedModeling is not downloading properly.</span></div><div class=""><br class=""></div><div class="">These are a list of JSON files with 0 size.  I am guessing these are the ones that failed XSLT.  I will start work on these if there isn’t a more pressing issue.</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">./Basic/ExperimentalBinaryCompression/Lion.json</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">./Basic/ExperimentalBinaryCompression/LionCoded.json</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">./Basic/Geospatial/MarsLOD002.json</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">./Basic/Geospatial/MarsLOD005.json</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">./Basic/Geospatial/MarsLOD008.json</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">./Basic/Geospatial/MarsLOD011.json</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">./Basic/Geospatial/MarsLOD017.json</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">./Basic/Geospatial/MarsLOD020.json</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">./Basic/Geospatial/MarsLOD023.json</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">./Basic/Medical/BodySkinIndexedFaceSetNIST.json</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">./Basic/Medical/BonesAllSkeleton.json</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">./Basic/Medical/BonesHead.json</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">./Basic/Medical/BonesMandible.json</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">./Basic/Medical/SkeletonCompleteNoNormals.json</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">./Basic/Medical/SkeletonCompleteNormals.json</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">./Basic/Shaders/Flutter.json</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">./Basic/StudentProjects/AllenDutton.json</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">./Basic/StudentProjects/LaetitiaSprints.json</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">./ConformanceNist/Appearance/PixelTexture/256PixelTexture.json</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">./ConformanceNist/GeometricProperties/Coordinate/15000points_lineset.json</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">./ConformanceNist/Geometry/IndexedLineSet/15000-polylines-defcolor.json</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">./ConformanceNist/Geometry/IndexedLineSet/15000-Vertices.json</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">./Savage/AircraftFixedWing/B52H-StrategicBomber-UnitedStates/B52HStatic.json</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">./Savage/AircraftHelicopters/JhlHeavyLift-NPS/JointHeavyLiftHelicopter.json</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">./Savage/Locations/CampPendletonCalifornia/CampPendletonOperatingAreasExample.json</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">./Savage/Locations/FortLauderdaleFlorida/FortLauderdaleDepths10m.json</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">./Savage/Locations/FortLauderdaleFlorida/FortLauderdaleDepths20m.json</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">./Savage/Locations/MontereyBayCalifornia/MontereyBayLargeMesh.json</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">./Savage/Robots/UnmannedUnderwaterVehicles/Bluefin21BPAUV.json</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">./Savage/Scenarios/RemusMission10MAR2003/RemusMissionLineTrackPlayback.json</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">./Savage/Scenarios/UssColeTerroristAttack/AdenHarbor.json</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">./Savage/Scenarios/UssColeTerroristAttack/AdenHarborSmallScale.json</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">./Savage/ShipsCivilian/PersonalWaterCraft/JetskiWithRider.json</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">./Savage/ShipsCivilian/ResearchVessels/Endeavor.json</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">./Savage/Tools/Authoring/GridsExamplePixelTexture.json</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">./X3dForAdvancedModeling/GeometricShapes/IcosahedronSubdivisionLevel5.json</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">./X3dForAdvancedModeling/Matlab/PhasedArrayBeamExample.json</div></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div class="">I can also write a script which takes an X3D XML file, with a little work.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">This provides a more JavaScript (rather than XSLT) way of translating files to the X3D JSON standard.  I don’t know where the mappings from XML -> JSON come from other than Jsonix and xjc. I will look into what we can do with the mappings generated by Jsonix to use standard Jsonix tools to do the full translation.</div><div class=""><br class=""></div><div class="">I haven’t looked at ROUTEs yet.  I am just concerned with files which fail at this point.  Just getting a second way to translate X3D XML to X3D JSON seems like a major accomplishment!</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Now if only I could automatically update the JSON schema generated by Jsonix given my script!  Something to dream about!</div><div class=""><br class=""></div><div class="">John</div></div></body></html>