[x3d-public] X3dToJson.xslt. Overzealous replacement of text with \\ Use attached file in your test.

yottzumm at gmail.com yottzumm at gmail.com
Sat May 6 13:04:15 PDT 2017

 See this diff between original and new JSON.  With the comment, even the original X3dToJson.xslt was overzealous.
                       { "Text":
-                          "@string":["He said, \\\"Immel did it!\\\""]
+                          "@string":[\\]
-                        "#comment":"alternative: Text string='\"\\\"\\\"\"'"
+                        "#comment":"\\\\"

Original: XML:

$ more X3dHeaderPrototypeSyntaxExamples.x3d|egrep alternative"|Immel"
        <Text string='"He said, \"Immel did it!\""'/>
        <!-- alternative: Text string='"He said, \"Immel did it!\""' -->

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170506/690df6ac/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: X3dHeaderPrototypeSyntaxExamples.x3d
Type: application/octet-stream
Size: 6338 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170506/690df6ac/attachment.obj>

More information about the x3d-public mailing list