<div><div style="font-family:-apple-system,"helvetica neue";font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:1px;text-decoration:none;font-size:1rem;color:rgb(49,49,49)" dir="auto">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:</div><div style="font-family:-apple-system,"helvetica neue";font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:1px;text-decoration:none;font-size:1rem;color:rgb(49,49,49)" dir="auto"><br></div><div style="font-family:-apple-system,"helvetica neue";font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:1px;text-decoration:none;font-size:1rem;color:rgb(49,49,49)" dir="auto">Error: IllegalChildNodeFieldNameNotFound no containerField or field name found for the X3D JSON object. Check spelling of node.</div><div style="font-family:-apple-system,"helvetica neue";font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:1px;text-decoration:none;font-size:1rem;color:rgb(49,49,49)"> $elementName=Sphere, $parentName=Shape</div><div style="font-family:-apple-system,"helvetica neue";font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:1px;text-decoration:none;font-size:1rem;color:rgb(49,49,49)"> Please report this error to <a href="mailto:x3d-public@web3d.org" style="font-size:1rem;font-family:-apple-system,"helvetica neue";color:rgb(66,133,244)">x3d-public@web3d.org</a> - thanks for your help improving X3D Quality Assurance (QA).</div></div><div style="font-family:-apple-system,"helvetica neue";font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:1px;text-decoration:none;font-size:1rem;color:rgb(49,49,49)" dir="auto"><br></div><div style="font-family:-apple-system,"helvetica neue";font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:1px;text-decoration:none;font-size:1rem;color:rgb(49,49,49)" dir="auto">and the output JSON is no longer validate-able.</div><div style="font-family:-apple-system,"helvetica neue";font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:1px;text-decoration:none;font-size:1rem;color:rgb(49,49,49)" dir="auto"><br></div><div style="font-family:-apple-system,"helvetica neue";font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:1px;text-decoration:none;font-size:1rem;color:rgb(49,49,49)" dir="auto">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.</div><div style="font-family:-apple-system,"helvetica neue";font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:1px;text-decoration:none;font-size:1rem;color:rgb(49,49,49)" dir="auto"><br></div><div style="font-family:-apple-system,"helvetica neue";font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:1px;text-decoration:none;font-size:1rem;color:rgb(49,49,49)" dir="auto">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.</div><div style="font-family:-apple-system,"helvetica neue";font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:1px;text-decoration:none;font-size:1rem;color:rgb(49,49,49)" dir="auto"><br></div><div style="font-family:-apple-system,"helvetica neue";font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:1px;text-decoration:none;font-size:1rem;color:rgb(49,49,49)" dir="auto">This appears like the way to go? I will try it later.</div><div style="font-family:-apple-system,"helvetica neue";font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:1px;text-decoration:none;font-size:1rem;color:rgb(49,49,49)" dir="auto"><br></div><div style="font-family:-apple-system,"helvetica neue";font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:1px;text-decoration:none;font-size:1rem;color:rgb(49,49,49)" dir="auto"><div style="font-family:-apple-system,"helvetica neue"">java net.sf.saxon.Transform -s:input.xml -xsl:stylesheet.xsl -dtd:dtd.dtd -schema:schema.xsd -o:output.xml
</div><br></div><div style="font-family:-apple-system,"helvetica neue";font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:1px;text-decoration:none;font-size:1rem;color:rgb(49,49,49)" dir="auto"><br></div><div style="font-family:-apple-system,"helvetica neue";font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:1px;text-decoration:none;font-size:1rem;color:rgb(49,49,49)" dir="auto">This could help with X3DJSAIL being more self contained?</div><div style="font-family:-apple-system,"helvetica neue";font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:1px;text-decoration:none;font-size:1rem;color:rgb(49,49,49)" dir="auto"><br></div><div style="font-family:-apple-system,"helvetica neue";font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:1px;text-decoration:none;font-size:1rem;color:rgb(49,49,49)" dir="auto">I’m going to make changes to RunSaxon.java and SimpleSaxon.java in X3DJSONLD, and use environmental variables for DTD and XSD.</div><div style="font-family:-apple-system,"helvetica neue";font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:1px;text-decoration:none;font-size:1rem;color:rgb(49,49,49)" dir="auto"><br></div><div style="font-family:-apple-system,"helvetica neue";font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:1px;text-decoration:none;font-size:1rem;color:rgb(49,49,49)" dir="auto">Thanks,</div><div style="font-family:-apple-system,"helvetica neue";font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:1px;text-decoration:none;font-size:1rem;color:rgb(49,49,49)" dir="auto"><br></div><div style="font-family:-apple-system,"helvetica neue";font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:1px;text-decoration:none;font-size:1rem;color:rgb(49,49,49)" dir="auto">John</div><div style="font-family:-apple-system,"helvetica neue";font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:1px;text-decoration:none;font-size:1rem;color:rgb(49,49,49)" dir="auto"><br></div>