[x3d-public] X3dToJava.xlst error, I think. CDATA string included in output string.
Don Brutzman
brutzman at nps.edu
Sat Dec 16 20:21:51 PST 2017
Thanks for report, now fixed. I also modified setSourceCode() methods to alert if CDATA blocks are included.
Changes are checked in for X3dToJava.xslt and will re-run Java conversions of all X3D Examples next.
On 11/5/2017 5:32 PM, John Carlson wrote:
> 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
all the best, Don
--
Don Brutzman Naval Postgraduate School, Code USW/Br brutzman at nps.edu
Watkins 270, MOVES Institute, Monterey CA 93943-5000 USA +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman
More information about the x3d-public
mailing list