[x3d-public] XSLT expert needed for X3dToJson.xslt

John Carlson yottzumm at gmail.com
Wed Jan 20 21:37:21 PST 2021


Here's an example run of xslt3

$ node_modules/.bin/xslt3 
-xsl:/c/x3d-code/www.web3d.org/x3d/stylesheets/X3dToJson.xslt 
-s:bubs3.x3d -o:bubs3.json


I believe you can also install xslt3 for all users with:

$ npm install -g xslt3,

But check the Saxon-JS docs.  Or I can give you a package.json to create 
the node_modules folder.


Don has already addressed conversions like this.   Apparently, there are 
different results using saxon9he.jar and xslt3.

We need to document this, and either address Don's stylesheet, or file a 
bug report.  The JSON output in many cases is not valid X3D JSON.

One problem is that xslt3 is too slow to add to a build in many cases.

I recently added this to my build, but the number of different results 
between the two stylesheet processors is overwhelming, so I'm hoping for 
someone with a bit of time on their hands to deal with this.

If you're interested, feel free to contact me, and we can work on this 
privately, instead of spamming the list yet again. I think Don is busy.

I think the first thing we can try is replacing saxon9he.jar in Don's 
builds.

However, Don has suggested that he doesn't want to use node.js, so I'm 
kind of in a puzzle.

Thanks,

John




More information about the x3d-public mailing list