[x3d-public] X3dToJava.xslt CDATA
John Carlson
yottzumm at gmail.com
Sun Dec 10 20:35:07 PST 2017
Here’s the patch, after my fix to X3dToJava.xslt:
Index: HelloWorldProgramOutput.java
===================================================================
--- HelloWorldProgramOutput.java (revision 26041)
+++ HelloWorldProgramOutput.java (working copy)
@@ -218,7 +218,7 @@
.addChild(new GroupObject("BackgroundGroup")
.addChild(new BackgroundObject("GradualBackground"))
.addChild(new ScriptObject("colorTypeConversionScript").setSourceCode(
-"<![CDATA[" + "\n" +
+
"\n" +
"\n" +
"ecmascript:" + "\n" +
@@ -227,7 +227,7 @@
"{" + "\n" +
" colorsOutput = new MFColor(eventValue); // assigning value sends output event" + "\n" +
"// Browser.print('colorInput=' + eventValue + ', colorsOutput=' + colorsOutput + '\\n');" + "\n" +
-"}" + "\n" + "]]>"
+"}" + "\n"
)
.addField(new fieldObject().setAccessType("inputOnly").setName("colorInput").setType("SFColor"))
.addField(new fieldObject().setAccessType("outputOnly").setName("colorsOutput").setType("MFColor")))
@@ -291,7 +291,7 @@
.addConnect(new connectObject().setNodeField("ambientIntensity").setProtoField("ambientIntensity"))))
.addComments(" Only first node (the node type) is renderable, others are along for the ride ")
.addChild(new ScriptObject("MaterialModulatorScript").setSourceCode(
-"<![CDATA[" + "\n" +
+
"\n" +
"\n" +
"ecmascript:" + "\n" +
@@ -316,7 +316,7 @@
" {" + "\n" +
" Browser.print ('diffuseColor=(' + red + ',' + green + ',' + blue + ') newColor=' + newColor.toString() + '\\n');" + "\n" +
" }" + "\n" +
-"}" + "\n" + "]]>"
+"}" + "\n"
)
.addField(new fieldObject().setAccessType("inputOutput").setName("enabled").setType("SFBool"))
.addField(new fieldObject().setAccessType("inputOutput").setName("diffuseColor").setType("SFColor"))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20171210/a737a5a5/attachment-0001.html>
More information about the x3d-public
mailing list