Use X3dToPython.xslt on attached model and then try to run the python:
Comment out of place:
$ python JinLOA4.py
File "C:\Users\jcarl\X3DJSONLD\src\main\python\net\x3djsonld\data\JinLOA4.py", line 2267
<orientationinterpolator def="Stop_l_midtarsal_RotationInterpolator" key="0 0.5 1" keyvalue="0 0 1 0 0 0 1 0 0 0 1 0">
^
SyntaxError: invalid syntax</orientationinterpolator>
Diff:
Diff:
"orientationinterpolator" is not a legal node name and thus throws errors.
Attaching file JinLOA4.x3d is not very helpful, since the current master version might get updated and is always part of the X3D Examples Archive at
- https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Characters/JinLOA4Index.html
- https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Characters/JinLOA4.x3d
Working with existing shared example models is the best way to make improvements. Sometimes the issue is in the version-controlled scene, not the conversion software and not X3DJSAIL.
When I run X3dToPython.xslt against the master version, it works.
Don, it doesn’t help to look at the XML/HTML generated by sourceforge from
the ticket, you have to look at the attached file.
I believe this error was caused by converting a comment to a Python
comment. I recommend using a comment class like you do in X3DJSAIL, so we
can roundtrip comments.
Thanks,
John
On Sun, Dec 28, 2025 at 10:35 PM Don Brutzman brutzman@users.sourceforge.net wrote:
Related
Tickets:
#80Off ticket: John, you are missing my point. My reply was clear, the
authoritative JinLOA4.x3d and .py work.
I am not debugging complicated examples that do not make immediate sense.
This ticket will not get further attention. I have changed status
from closed to wont-fix.
You need to write simpler tickets, simpler test cases, and use X3D Example
Archives wherever possible.
Typical process progression:
a. is the .x3d file valid,
b. is the conversion by X3dtoPython.xslt stylesheet correct,
c. does the x3d.py library correctly support the converted source code.
Hope this repetition helps. Thanks for your efforts.
all the best, Don
X3D Graphics, Maritime Robotics, Distributed Simulation
Relative Motion Consulting https://RelativeMotion.info
Last edit: Don Brutzman 2026-02-02
The point is that “<orientationinterpolator” is not legal Python.
If you fixed comments, that works for me.
John
On Sun, Dec 28, 2025 at 10:35 PM Don Brutzman brutzman@users.sourceforge.net wrote:
Related
Tickets:
#80A simple check for “orientationinterpolator” in the attached example
doesn’t show any results, as I expected.
So if you don’t actually check the files I attach, why should I even attach
them????
The reason to attach examples is to provide durability in error reporting,
providing links doesn’t show the error.
Many people on GitHub require attachments to issues, instead of links.
I will continue providing links in hopes that you will look at them.
I fully realize that NetBeans can be really crappy about opening recent
files.
John
On Sun, Dec 28, 2025 at 10:35 PM Don Brutzman brutzman@users.sourceforge.net wrote:
Related
Tickets:
#80It’s also way too easy to go into an online example and remove a comment,
invalidating any error report I have.
So I will try to provide actual python and .x3d attachments, in addition to
links. Then you can compare online stuff with my attachments. It’s
natural for me to provide attachments, but if you provide ways to use
stylesheets on links, I’ll go with that. I don’t actually know if X3DJSAIL
takes links for conversions or validation.
If you’re concerned about me putting strange nodes into .x3d that gets
translated to Python somehow, then put checks in X3dToPython.xslt to limit
the constructors being used in Python output. Then you can feel more
confident in using .x3d files of unknown origin.
If XSLT doesn’t provide that feature, that’s a good feature request or
preprocessor feature.
All’s good, Don. Happy New Year!
Trust in God, and validate everything!
I use this scripture in 1 John 4:1-3 as a form of validation:
“Do you (the spirit) acknowledge Jesus Christ has come in the flesh?” Use
spirit in a wide meaning, like team spirit or just a thought you have.
I should use it more often. Obviously, one has to acknowledge it oneself
for it to work. And I expect full positive affirmation before proceeding.
If you have your own internal validator, what do you use? I’ve heard that
some use Socrates.
What I plan to do is add more node validation in X3DJSONLD.*, which I was
avoiding by asking for JSON Schema, and relying on Java compilation by
X3DJSAIL, but yeah, you have to trust your schema tools as well!
One reason to translate JSON to DOM is to use DOM validation tools, which I
would like to know more about on the web.
BTW, there was abuse in my family and I fully acknowledge that.
If you can’t trust openness, then the whole world will collapse.
Strangely, the people who are open are the most suspect, apparently.
I am familiar with “Loose lips sink ships.” My ship sunk 35 years ago,
and I’m breathing water, no problem. But now people are dumping sewage
into my water, so yes, I’m upset.
BTW, there’s a great POSIX tool called diff, that is available with WSL2 on
Windows 11. Highly recommended!
I’m guessing there are also commercially available differencing tools.
Probably there’s one in XMLSpy!
John
On Mon, Dec 29, 2025 at 12:42 AM John W Carlson yottzumm3@users.sourceforge.net wrote:
Related
Tickets:
#80