[x3d-public] Problem with X3DJSONLD.js -- Intermediate *.x3d.new doesn't have containerField on shape, so neither does Java. Is this a problem?

John Carlson yottzumm at gmail.com
Wed Apr 13 07:47:02 PDT 2022


Follow up, sorry, Correction:  the output from X3dToJson.XSLT does contain
rootNode.


On Sat, Apr 9, 2022 at 7:43 PM John Carlson <yottzumm at gmail.com> wrote:

> interesting "issues" while running Java generated by JavaSerializer.js.
> Sample attached.
>
> Note that the SquawLOD023.x3d.new (intermediate between JSON and Java)
> does not contain the containerField='rootNode' that the XML file has.
> Should I explicitly set the containerField on Shape?
>
> Note that the .new.json does not contain a containerField either.
>
> Can someone explain why the containerField was supposed to be 'rootNode'?
> Should running the Java code produce it?
>

I will look a bit at X3dToJava.XSLT output.

>
> ~/X3DJSONLD/src/main/java ~/X3DJSONLD/src/main/shell
>
> net/coderextreme/x3d_code/www_web3d_org/x3d/content/examples/Basic/Geospatial/SquawLOD023
> success... containerField mismatch for Shape DEF='', found
> containerField='children' but expected containerField='rootNode'
> ~/X3DJSONLD/src/main/shell
> ~/X3DJSONLD/src/main/java ~/X3DJSONLD/src/main/shell
>
> net/coderextreme/x3d_code/www_web3d_org/x3d/content/examples/Basic/Geospatial/SquawLOD024
> success... containerField mismatch for Shape DEF='', found
> containerField='children' but expected containerField='rootNode'
> ~/X3DJSONLD/src/main/shell
> ~/X3DJSONLD/src/main/java ~/X3DJSONLD/src/main/shell
>
> net/coderextreme/x3d_code/www_web3d_org/x3d/content/examples/Basic/Geospatial/SquawLOD025
> success... containerField mismatch for Shape DEF='', found
> containerField='children' but expected containerField='rootNode'
> ~/X3DJSONLD/src/main/shell
> ~/X3DJSONLD/src/main/java ~/X3DJSONLD/src/main/shell
>
> net/coderextreme/x3d_code/www_web3d_org/x3d/content/examples/Basic/Geospatial/SquawLOD026
> success... containerField mismatch for Shape DEF='', found
> containerField='children' but expected containerField='rootNode'
> ~/X3DJSONLD/src/main/shell
> ~/X3DJSONLD/src/main/java ~/X3DJSONLD/src/main/shell
>
> net/coderextreme/x3d_code/www_web3d_org/x3d/content/examples/Basic/Geospatial/SquawLOD027
> success... containerField mismatch for Shape DEF='', found
> containerField='children' but expected containerField='rootNode'
> ~/X3DJSONLD/src/main/shell
> ~/X3DJSONLD/src/main/java ~/X3DJSONLD/src/main/shell
>
> net/coderextreme/x3d_code/www_web3d_org/x3d/content/examples/Basic/Geospatial/SquawLOD028
> success... containerField mismatch for Shape DEF='', found
> containerField='children' but expected containerField='rootNode'
> ~/X3DJSONLD/src/main/shell
> ~/X3DJSONLD/src/main/java ~/X3DJSONLD/src/main/shell
>
> net/coderextreme/x3d_code/www_web3d_org/x3d/content/examples/Basic/Geospatial/SquawLOD029
> success... containerField mismatch for Shape DEF='', found
> containerField='children' but expected containerField='rootNode'
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20220413/8b9d9097/attachment-0001.html>


More information about the x3d-public mailing list