[x3d-public] setUSE in X3DJSAIL. Impact on X3DJSONLD.

John Carlson yottzumm at gmail.com
Thu Jul 20 11:47:35 PDT 2017


There is also DOM in the stylesheet conversions.

John


Sent from Mail for Windows 10

From: John Carlson
Sent: Thursday, July 20, 2017 2:39 PM
To: Andreas Plesch; X3D Graphics public mailing list
Subject: RE: [x3d-public] setUSE in X3DJSAIL. Impact on X3DJSONLD.

As far as I know, there is no DOM in X3DJSAIL except for processing XML input into the “scene” through reflection as defined with typesafe instances of concrete classes (not in SAI, but likely implementations of SAI).   XML output is done with strings.

Sent from Mail for Windows 10

From: Andreas Plesch
Sent: Thursday, July 20, 2017 2:35 PM
To: X3D Graphics public mailing list
Subject: Re: [x3d-public] setUSE in X3DJSAIL. Impact on X3DJSONLD.


Date: Thu, 20 Jul 2017 12:18:53 -0400
From: John Carlson <yottzumm at gmail.com>

As far as I know, there is no ?parents? property on a node in DOM, so this whole discussion is rather moot until that changes. If you don?t have parents, then there?s no way to get to one or more of your parents from a child node (not necessarily needed, but?)

There is parentNode:

https://developer.mozilla.org/en-US/docs/Web/API/Node/parentNode

But the property is readonly because there can be only one parent for a node.

x3dom/cobweb do not use the DOM for storing the x3d scene graph. They use javascript objects, for this reason among others. Additionally, there is a SAI service importDOM (or so) to help with bridging.

I am not sure if I am following the discussion completely. One key seems to be to be careful in distinguishing in nomenclature (and praxis) the abstract scene graph (including the runtime state) - accessible via standardized SAI - from the (XML) node tree. Is perhaps X3DJSAIL a bit of a misnomer somewhat conflating SAI services with node tree manipulation ?

Andreas


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


More information about the x3d-public mailing list