<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang=EN-US link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal>I just realized it could be a difference between saon9he.jar and saxon9B.jar.  Will try that tomorrow.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>John</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Sent from <a href="https://go.microsoft.com/fwlink/?LinkId=550986">Mail</a> for Windows 10</p><p class=MsoNormal><o:p> </o:p></p><div style='mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal style='border:none;padding:0in'><b>From: </b><a href="mailto:yottzumm@gmail.com">yottzumm@gmail.com</a><br><b>Sent: </b>Friday, January 27, 2017 8:58 PM<br><b>To: </b><a href="mailto:brutzman@nps.edu">Don Brutzman</a>; <a href="mailto:roy.walmsley@ntlworld.com">Roy Walmsley</a>; <a href="mailto:x3d-public@web3d.org">x3d-public@web3d.org</a><br><b>Subject: </b>X3DJSAIL -- java.Core.X3DObject.toFileJSON() produces extra newlinesin JSON file.</p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Here is the result.json (moved to from JSON.json) produced from newScene.java, and the newScene.json which newScene.java is derived from.  Note that newScene.java is missing 3 metaObjects from newScene.json, removed by X3DJSONLD, which is placed back into result.json by X3dToJson.xslt.  I think perhaps some parameter names and values are missing from calling the X3dToJson.xslt stylesheet in X3DObject.toFileJSON(), because there’s no indentation in result.json.  Also, there are extra newlines in the result.json file, which I believe make it illegal JSON (but I’m not sure).  The head’s children got moved around as well—Would a more declarative style in Java help?  Is this handling of comments (actually children) a breaker for the JSON encoding or perhaps just the SAI exports?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I can’t figure out where the newlines are coming from without looking deep into the stylesheet or Java code.  They seem to be coming at the first blank spot after the 80<sup>th</sup> character, but I’m not sure.  I’m suspecting some kind of filter.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Is there a better way to configure the stylesheet through Java?   I will look for documentation next.  Can we configure it to be the same as the X3D -> JSON conversion found in the X3D Resources Examples JSON build?  Or do we want something smaller?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks!<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>John<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>