[x3d-public] patches to x3d-code/www.web3d.org/x3d/stylesheets and "smoketest" example outputs

John Carlson yottzumm at gmail.com
Mon Nov 20 18:22:02 PST 2017


Here is an example command line which generated double CDATAs.  Let me know if I am doing this improperly:

java -cp ../jars/X3DJSAIL.3.3.full.jar";". HelloWorldProgramOutput x3d foo.x3d

John

Sent from Mail for Windows 10

From: John Carlson
Sent: Monday, November 20, 2017 7:16 PM
To: Don Brutzman
Cc: X3D Graphics public mailing list
Subject: Re: patches to x3d-code/www.web3d.org/x3d/stylesheets and "smoketest" example outputs

The main difference in x3d/Stylesheet/java/examples is that I've gotten rid of one of the double CDATAs appearing in output from HelloWorldProgramOutput.java.   That was accomplished by changing X3dToJava.xslt.   There is another place we can change that, but I haven't looked into that other place yet.

Please fix/patch at you convenience and we can move to the next step.

Johb
John

On Nov 20, 2017 6:49 PM, "John Carlson" <yottzumm at gmail.com> wrote:
rm -rf does delete everything under java/examples.  svn diff shows files as deleted/emptied, and it looks like sourceforge says they are there.   I can try deleting the whole java folder?   I am guessing I will have to remove the whole thing from my fix system.   Is there a "fix-up" command besides svn cleanup, which I've tried?

As far as I know I don't have access to commit, but I ran svn co java/examples thinking it was checkout.   I hope nothing was damaged.

I have since tried to checkout the whole repository with piecemeal success.   I've made it back to where I was originally.   I would like to see progress on the extra CDATA in setSourceCode in X3dToJava.xslt and the MFString encoding in generated Java (the output JSON in JavaScript from the test-nashorn build target).

You are pushing me to continue work on my DOM -> JSON serializer for incorporation in the JavaScript generator.  I would like to use X3DJSAIL for this, but not if it's too painful.

Oh to be free from XSLT!

Perhaps I should strip JSON out of my serializers and go just with DOM?   Lol!   Then we will see which is a better solution, JS or XSLT.

Don lacks a way to go from JSON -> DOM and John lacks a way to go from DOM -> JSON (if only in the browser).   Will Saxonica provide an answer for Don???  Will John get off his butt and get container fields done?  Can John find a solution in XSLT?
 
No, XSLT 2.0 does not port to web browser.  No XSLT 2.0 is not portable.

John

On Nov 20, 2017 3:31 PM, "Don Brutzman" <brutzman at nps.edu> wrote:
I have "smoke test" example outputs in version control so that we have the ability to backtrack if errors ever creep in.

https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/stylesheets/java/examples/

These are tested by running HelloWorld.java
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/stylesheets/java/examples/HelloWorldProgram.java

with output-console log appearing in
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/stylesheets/java/examples/HelloWorldProgramOutputLog.txt

reference:
https://en.wikipedia.org/wiki/Smoke_testing_(software)

I suspect you have conflicts because your versions don't match mine.

*Please don't check your tests in*... rather delete/remove yours and restore from subversion, then svn diff comparisons will show whether yours match.  I only update these versions every few days when a new version of X3DJSAIL is released.

Hope that explains...


On 11/19/2017 10:01 PM, John Carlson wrote:
Weird SVN skip error in java/examples:

$ rm -rf java/examples/

$ svn up

Updating '.':

Restored 'java\examples'

Restored 'java\examples\.htaccess'

Restored 'java\examples\HelloWorldProgramOutputX_ITE.html'

Restored 'java\examples\HelloWorldProgramOutput.x3d'

Restored 'java\examples\HelloWorldProgramOutputXslt.x3dv'

Restored 'java\examples\HelloWorldProgramOutput.xml'

Restored 'java\examples\HelloWorldProgramOutput.CommandLine.EXIFICIENT.exi'

Restored 'java\examples\HelloWorldProgram.java'

Restored 'java\examples\HelloWorldProgramOutput.zip'

Restored 'java\examples\HelloWorldProgramOutput.wrl'

Restored 'java\examples\HelloWorldProgramOutput.html'

Restored 'java\examples\HelloWorldProgramOutputX3dom.xhtml'

Restored 'java\examples\HelloWorldProgramOutput.json'

Restored 'java\examples\HelloWorldProgramOutput.EXIFICIENT.exi'

Restored 'java\examples\HelloWorldProgramOutput.Reloaded.x3d'

Restored 'java\examples\HelloWorldProgramOutput.gz'

Restored 'java\examples\HelloWorldProgramOutput.java'

Restored 'java\examples\HelloWorldProgramOutputLog.txt'

Restored 'java\examples\images'

Restored 'java\examples\images\X3dJavaSceneAccessInterfaceSaiLibrary.png'

Restored 'java\examples\images\HelloWorldProgramOutput.png'

Restored 'java\examples\images\HelloWorldProgramOutput.mp4'

Restored 'java\examples\HelloWorldProgramOutput.x3dv'

Restored 'java\examples\HelloWorldProgramOutputZip'

Restored 'java\examples\HelloWorldProgramOutputZip\HelloWorldProgramOutput.x3d'

Skipped 'java\examples\HelloWorldProgramOutput.CommandLine.x3d.gz' -- Node remains in conflict

Skipped 'java\examples\HelloWorldProgramOutput.CommandLine.x3d' -- Node remains in conflict

Skipped 'java\examples\HelloWorldProgramOutput.CommandLine.x3d.zip' -- Node remains in conflict

At revision 26016.

Summary of conflicts:

   Skipped paths: 3

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

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


More information about the x3d-public mailing list