<div><div dir="auto">Yes the Saxon xslt 2.0 JavaScript transformer is not preferrred.   Waiting for 3.0 to become free.</div></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jan 26, 2020 at 3:31 PM Andreas Plesch <<a href="mailto:andreasplesch@gmail.com">andreasplesch@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It was the xsl processor which had the problem, not the stylesheet.<br>
<br>
<a href="http://xsltransform.net/" rel="noreferrer" target="_blank">http://xsltransform.net/</a><br>
<br>
uses saxon 9 he and generates error-free and hopefully correct json.<br>
<br>
-Andreas<br>
<br>
On Sun, Jan 26, 2020 at 4:09 PM Andreas Plesch <<a href="mailto:andreasplesch@gmail.com" target="_blank">andreasplesch@gmail.com</a>> wrote:<br>
><br>
> I was looking for a relatively easy way to convert from xml to the<br>
> json encoding, using Don's xslt stylesheet<br>
> (<a href="https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/stylesheets/X3dToJson.xslt#l26" rel="noreferrer" target="_blank">https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/stylesheets/X3dToJson.xslt#l26</a>).<br>
> After a while I found<br>
><br>
> <a href="https://xslttest.appspot.com/" rel="noreferrer" target="_blank">https://xslttest.appspot.com/</a><br>
><br>
> which seems to work pretty well but had some problem with Protos<br>
><br>
> Here is a test conversion of an old vrml scene:<br>
><br>
> <a href="https://gist.github.com/andreasplesch/4fb27cb9f3db9ee423066ae74d4aaae1" rel="noreferrer" target="_blank">https://gist.github.com/andreasplesch/4fb27cb9f3db9ee423066ae74d4aaae1</a><br>
><br>
> converted to xml with view3dscene.<br>
><br>
> The json has "-IllegalChildNodeFieldNameNotFound" in ProtoBodies.<br>
> Could that be a result of insufficient capabilities of the xsl<br>
> processor ? It says it supports XSLT 2.0.<br>
><br>
> Andreas<br>
><br>
><br>
> --<br>
> Andreas Plesch<br>
> Waltham, MA 02453<br>
<br>
<br>
<br>
-- <br>
Andreas Plesch<br>
Waltham, MA 02453<br>
<br>
_______________________________________________<br>
x3d-public mailing list<br>
<a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a><br>
<a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" rel="noreferrer" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a><br>
</blockquote></div></div>