[x3d-public] Approaching an old issue, using stylesheets on the web

John Carlson yottzumm at gmail.com
Tue Apr 9 13:41:09 PDT 2024


I recently discovered with X3dToJson.xslt, I don’t have the X3D schema and
DTD at the top of the .x3d file, I get tons of errors like these:

Error: IllegalChildNodeFieldNameNotFound no containerField or field name
found for the X3D JSON object. Check spelling of node.
  $elementName=Sphere, $parentName=Shape
  Please report this error to x3d-public at web3d.org - thanks for your help
improving X3D Quality Assurance (QA).

and the output JSON is no longer validate-able.

I first was getting errors like these when trying to use Saxon-CE and
SaxonJS, but I’ve also gotten them with xslt3 npm.  With Saxon-CE, I think
this was due to CORS, but I’m not positive, it was a long time ago.

If there’s some way to put the DTD or schema on the Saxon Transform command
line,  that could ease the issue I am having.

This appears like the way to go?  I will try it later.

java net.sf.saxon.Transform -s:input.xml -xsl:stylesheet.xsl -dtd:dtd.dtd
-schema:schema.xsd -o:output.xml


This could help with X3DJSAIL being more self contained?

I’m going to make changes to RunSaxon.java and SimpleSaxon.java in
X3DJSONLD, and use environmental variables for DTD and XSD.

Thanks,

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


More information about the x3d-public mailing list