[x3d-public] X3dToJson.xlst roundtripping. Missing \

John Carlson yottzumm at gmail.com
Sat May 12 19:53:28 PDT 2018


$ diff -w C:/Users/coderextreme/X3DJSONLD/src/main/x3d_code/www_web3d_org/x3d/content/examples/Basic/development/ProxyShapeExample*Can* C:/x3d-code/www.web3d.org/x3d/content/examples/Basic/development/ProxyShapeExample*Can*
24,26d23
<       <Shape containerField='proxy'>
<         <Box size='16 16 16'/>
<       </Shape>
30a28,30
>       <Shape containerField='proxy'>
>         <Box size='16 16 16'/>
>       </Shape>
34a35
>
41,42c42,43
<                'string [ \"proxy is\" \"any-order child\" \"of Collision\" ]' +
<                'fontStyle FontStyle { justify [ \"MIDDLE\" \"MIDDLE\" ] } }' +
---
>                'string [ "proxy is" "any-order child" "of Collision" ]' +
>                'fontStyle FontStyle { justify [ "MIDDLE" "MIDDLE" ] } }' +
48a50,51
>
>
The left file is the original XML (Snew), and the right side is the roundtrip.   Note that the roundtrip leaves out \’s  I am not sure if this is correct or not? Probably hurts nothing.  I will attempt to fix in my DOMSerializer.js.

John

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20180512/76a4f5b2/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ProxyShapeExample.SnewCanonical.x3d
Type: application/octet-stream
Size: 2251 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20180512/76a4f5b2/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ProxyShapeExample-roundtripCanonical.x3d
Type: application/octet-stream
Size: 2262 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20180512/76a4f5b2/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ProxyShapeExample.json
Type: application/json
Size: 4652 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20180512/76a4f5b2/attachment-0001.json>


More information about the x3d-public mailing list