[x3d-public] X3dToJava.xlst error, I think. CDATA string included in output string.

John Carlson yottzumm at gmail.com
Sun Nov 5 17:32:19 PST 2017


In: /c/x3d-code/www.web3d.org/x3d/stylesheets/java/examples/HelloWorldProgramOutput.java

<![CDATA[

and

]]>

should not be present in setSourceCode parameter, I don’t think. See HelloWorldProgram.java

John

      .addChild(new ScriptObject("colorTypeConversionScript").setSourceCode(
"<![CDATA[" + "\n" +
"\n" +
"\n" +
"ecmascript:" + "\n" +
"\n" +
"function colorInput (eventValue) // Example source code" + "\n" +
"{" + "\n" +
"   colorsOutput = new MFColor(eventValue); // assigning value sends output event" + "\n" +
"// Browser.print('colorInput=' + eventValue + ', colorsOutput=' + colorsOutput + '\\n');" + "\n" +
"}" + "\n" + "]]>"
)


I have a patch, but I have a bug in X3dToJson.xslt to report first.

John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20171105/6ef37249/attachment.html>


More information about the x3d-public mailing list