<div dir="ltr">Yes, I am aware of that.   I can't use xml2all.js for all files, particularly the Joe*.x3d files, because my code doesn't exit.  So I'm relying on X3dToJson.xslt to translate Joe*.x3d files to JSON.   So I may have to use xml2all.js for most of the files so that the Environment element is carried over (it's only in one file now), and X3dToJson.xslt for particularly difficult files, like Joe*.x3d.  I'm looking for a solution that works in all cases.  Help!<div><br></div><div>I will work with the debugger to try to fix DOM2JSONSerializer.js, but I've got HAnim JSON that I've been trying to work on.</div><div><br></div><div>The good news is, the Environment tag works well in X3DOM.</div><div><br></div><div>John</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Nov 21, 2020 at 1:55 AM Don Brutzman <<a href="mailto:brutzman@nps.edu">brutzman@nps.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi John.  The stylesheet doesn't support this conversion because Environment is not a standard X3D node.<br>
<br>
* X3D4 Architecture, Annex Z (normative) Version content<br>
   <a href="https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-WD2/Part01/versionContent.html" rel="noreferrer" target="_blank">https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-WD2/Part01/versionContent.html</a><br>
<br>
<br>
On 11/20/2020 4:26 AM, John Carlson wrote:<br>
> <br>
> Successful test of:<br>
> <br>
> <Environment gammaCorrectionDefault="none"></Environment><br>
> <br>
> converted to JSON.<br>
> <br>
> See attached image!<br>
> <br>
> Bye!<br>
> <br>
> John<br>
> <br>
> image.png<br>
> <br>
> On Fri, Nov 20, 2020 at 6:19 AM John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a> <mailto:<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>>> wrote:<br>
> <br>
>     Environment may be automatically converted over to JSON using X3DJSONLD:<br>
> <br>
>     $ node ../node/xml2all.js ../data/ball.x3d<br>
> <br>
>     Now for test!<br>
> <br>
>     On Fri, Nov 20, 2020 at 6:16 AM John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a> <mailto:<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>>> wrote:<br>
> <br>
>         This element is stripped from JSON when processing with X3dToJson.xslt<br>
> <br>
>         <Environment gammaCorrectionDefault="none"></Environment><br>
> <br>
>         Thus there is no way to achieve similar effects between X3DOM and X_ITE in an automated fashion with stylesheets.<br>
> <br>
>         John<br>
> <br>
<br>
all the best, Don<br>
-- <br>
Don Brutzman  Naval Postgraduate School, Code USW/Br       <a href="mailto:brutzman@nps.edu" target="_blank">brutzman@nps.edu</a><br>
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149<br>
X3D graphics, virtual worlds, navy robotics <a href="http://faculty.nps.edu/brutzman" rel="noreferrer" target="_blank">http://faculty.nps.edu/brutzman</a><br>
</blockquote></div>