[x3d-public] X3DJSAIL: need agreement on SFString \\\\ an d\\

John Carlson yottzumm at gmail.com
Thu May 25 05:18:20 PDT 2017


Okay, here’s a place where Don and I conflict in our coding style and an agreement should be reached.

My style:
        .addMeta(new metaObject().setName("description").setContent("a script test with embedded \\n between single quotes, a double backslash \\\\ a backslash \\ and a closing quote \"")))

Don’s style
    .addMeta(new metaObject().setName("description").setContent("a script test with embedded \\n between single quotes, a double backslash \\\\\\\\ a backslash \\\\ and a closing quote \"")))

I like my style better.  What do you think?

John
Sent from Mail for Windows 10

From: John Carlson
Sent: Thursday, May 25, 2017 4:36 AM
To: Don Brutzman
Cc: X3D Graphics public mailing list
Subject: RE: X3DJSAIL: Interesting exception, butitcouldbemyfault.Re:CommentsBlock.

Sound terrific.  Then I can test my output against your output to verify our code produces the same thing.
That would be an excellent test of my serializers and your X3dToJava.xslt.

On another note, I am giving up maintenance of my X3dToES5.xslt  It’s 16 times bigger than my serializer, and I can’t keep up with the changes to X3dToJava.xslt.

I donate it to the Web3d consortium.   It’s really your code anyway.

Here’s the latest copy that’s out of date:
https://coderextreme.net/X3DJSONLD/src/main/lib/stylesheets/X3dToES5.xslt

The “import” X3Dautoclass.js file is here:

https://coderextreme.net/X3DJSONLD/src/main/nashorn/X3Dautoclass.js

The program which generates X3Dautoclass.js from the object model, classes.py, is attached.

If you can find a better way to support multiple languages in the same stylesheet, I am willing to maintain the JavaScript portion of that.  That would be ideal.

If you want to put it in the legacy folder, that’s OK by me.

John

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


More information about the x3d-public mailing list