[x3d-public] Bad ECMAScript in X3DJSAIL JSON output

John Carlson yottzumm at gmail.com
Mon Mar 19 04:33:50 PDT 2018


Where should I update my stylesheets?  Look at this ECMAScript in JSON.  This will never work.   The whole function body is commented out.   Please make multistring array.  Thanks.

                    "#sourceText":[
"ecmascript: function colorInput (eventValue) // Example source code { colorsOutput = new MFColor(eventValue); // assigning value sends output event // Browser.print('colorInput=' + eventValue + ', colorsOutput=' + colorsOutput + '\n'); }"
]

I do not know why I am not communicating.

John

Sent from Mail for Windows 10

From: John Carlson
Sent: Saturday, March 17, 2018 5:03 PM
To: Don Brutzman; x3d-public at web3d.org
Subject: RE: Bad ECMAScript in X3DJSAIL JSON output

Possibly related to this patch…what do you think?   Web site appears okay, so I am confused.  My local build has problems, ran ant all in x3d/stylesheets/java.   Files not updating in java/examples, so puzzled.  Website appears okay.  Files in x3d/stylesheets/java/classes up to date, but still have same issue.  Hmm.  May try flipping this back.   Most successful with my DOM2JSONSerializer (no stylesheet).  Worst time going through a Java X3DJSAIL program to produce JSON.

What process generates the JSON on the website for java/examples? http://www.web3d.org/x3d/stylesheets/java/examples/HelloWorldProgramOutput.json  that looks ideal, AFAICT.

John

$ svn diff X3d*
Index: X3dToJson.xslt
===================================================================
--- X3dToJson.xslt      (revision 26501)
+++ X3dToJson.xslt      (working copy)
@@ -73,7 +73,7 @@
     <xsl:param name="stripComments"><xsl:text>false</xsl:text></xsl:param>
     <xsl:param name="stripDefaultAttributes"><xsl:text>true</xsl:text></xsl:param>
     <xsl:param name="indentEnabled"><xsl:text>true</xsl:text></xsl:param>
-    <xsl:param name="normalizeCommentWhitespace"><xsl:text>true</xsl:text></xsl:param>
+    <xsl:param name="normalizeCommentWhitespace"><xsl:text>false</xsl:text></xsl:param>
     <xsl:param name="sourceText"><xsl:text>strings</xsl:text></xsl:param> <!-- escaped | strings | plaintext -->
     <xsl:param name="traceEnabled" ><xsl:text>false</xsl:text></xsl:param>
     <xsl:param name="traceScripts" ><xsl:text>false</xsl:text></xsl:param>

John

Sent from Mail for Windows 10

From: John Carlson
Sent: Saturday, March 17, 2018 3:33 PM
To: Don Brutzman; x3d-public at web3d.org
Subject: Bad ECMAScript in X3DJSAIL JSON output

See overrunning comments in ECMAScript in x3d-code/www.web3d.org/x3d/stylesheets/java/examples/HelloWorldProgramOutput.json

Sent from Mail for Windows 10



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20180319/d8e25109/attachment.html>


More information about the x3d-public mailing list