[x3d-public] Simplifying ProtoInstance nodes
John Carlson
yottzumm at gmail.com
Sun May 18 15:57:29 PDT 2025
The conversion from JSON ProtoInstance short form to validateable XML/DOM
has been accomplished for my x3dschema repository, and some JSON files now
log errors. I currently discard attempts to override builtins and existing
Protos.
Please provide additional JSON files privately, if you want me to check
further. One can achieve JSON through use of the X3dToJson.xslt, X3DJSAIL,
or Holger's x3d-tidy npx package
If someone wants me to do a DOM short-form to validateable syntax, that
might be in the cards!
X3DJSONLD proper is on the back burner now, since I've removed references
to ProtoExpander, and run tests with X3DOM for JSON prototypes (great job
on standard JSON prototypes, AFAIAC, Andreas!). Next is to try X3DOM
with my "uninformed actor" JSON. I plan to test Andreas' version. here:
https://andreasplesch.github.io/x3dom/dist/x3dom-full.debug.js If there are
additional dependencies needed, please let me know. I see many
possible included scripts on the X3DOM Editor website.
I don't have a solution for my x3dvalidate yet, I'm thinking about it.
That will also cover X3DJSONLD.js, I think, when I have x3dvalidate done
right.
So far, I don't see a need to extend JSON schema or XML schema yet at all.
Unless of course, there's a need to validate short form. Does anyone have
a case where short-form validation is required?
John
On Sat, May 10, 2025 at 9:16 PM John Carlson <yottzumm at gmail.com> wrote:
> I’ll come up with something for JSON. Someone else should do XML. I
> will probably put the JSON expansion in X3DJSONLD.java (my x3dschema
> repository), so JSON can be validated with Java and XML schema easily.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20250518/297e8d68/attachment.html>
More information about the x3d-public
mailing list