<div dir="auto">I did notice it was a hint and not an error on the validator web page.</div><div dir="auto"><br></div><div dir="auto">The Rubik examples are a test case and work ok in view3dscene and freewrl, and in the past with x_ite (haven’t tested recently). Also in the past I got my proto expander to work.</div><div dir="auto"><br></div><div dir="auto">I’m not sure what works or doesn’t work, since I’ve been under the weather, but I checked view3dscene and freewrl recently. I am pretty sure the schematron reports for all .</div><div dir="auto"><br></div><div dir="auto">I recall having major difficulties implementing Protos properly in the expander. It will take a disciplined design approach, not something you throw together in an evening.</div><div dir="auto"><br></div><div dir="auto">Any assistance I can offer will probably be confused, but you can look at my code to get an idea of complexity. Part of the design is coming up with good method names.</div><div dir="auto"><br></div><div dir="auto">John</div><div dir="auto"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 14, 2021 at 12:41 PM Don Brutzman <<a href="mailto:brutzman@nps.edu">brutzman@nps.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">John, looking closely at your structure, I think you have IS within a ProtoDeclare nested within another ProtoDeclare, with the IS reaching across two levels of prototyping.<br>
<br>
Pretty convoluted design... nested prototypes have always been quite difficult for players to implement.<br>
<br>
Wondering: is there a need to be so convoluted? Also wondering if any of our players work with this?<br>
<br>
Meanwhile I checked the logic of X3D Schematron rules for fieldValue checking, namely the rules based on protoFieldFound and externProtoFieldFound. No logical errors detected.<br>
<br>
Not sure why you are getting these Schematron errors but will look at it further, at the moment they seem to be inappropriate.<br>
<br>
<br>
<br>
On 6/11/2021 11:32 AM, John Carlson wrote:<br>
> ==========================================<br>
> <br>
> Standalone June 11 X3D-Edit: Note that errors are reported. I need help figuring out what's wrong. Attached rubikFurnace.x3d<br>
> <br>
> <br>
> Performing X3D Schematron check...<br>
> <ProtoInstance name='anyShape' DEF=''> <fieldValue name='xtranslation' value='0 0 0'/> has matching ProtoDeclare but no corresponding field match for this fieldValue [/X3D/Scene/ProtoDeclare[2]/ProtoBody/Transform/ProtoInstance[1]/fieldValue, error]<br>
> <ProtoInstance name='anyShape' DEF=''> <fieldValue name='xtranslation' value='2 0 0'/> has matching ProtoDeclare but no corresponding field match for this fieldValue [/X3D/Scene/ProtoDeclare[2]/ProtoBody/Transform/ProtoInstance[2]/fieldValue, error]<br>
> <ProtoInstance name='anyShape' DEF=''> <fieldValue name='xtranslation' value='-2 0 0'/> has matching ProtoDeclare but no corresponding field match for this fieldValue [/X3D/Scene/ProtoDeclare[2]/ProtoBody/Transform/ProtoInstance[3]/fieldValue, error]<br>
> <ProtoInstance name='three' DEF=''> <fieldValue name='ytranslation' value='0 0 0'/> has matching ProtoDeclare but no corresponding field match for this fieldValue [/X3D/Scene/ProtoDeclare[3]/ProtoBody/Transform/ProtoInstance[1]/fieldValue, error]<br>
> <ProtoInstance name='three' DEF=''> <fieldValue name='ytranslation' value='0 2 0'/> has matching ProtoDeclare but no corresponding field match for this fieldValue [/X3D/Scene/ProtoDeclare[3]/ProtoBody/Transform/ProtoInstance[2]/fieldValue, error]<br>
> <ProtoInstance name='three' DEF=''> <fieldValue name='ytranslation' value='0 -2 0'/> has matching ProtoDeclare but no corresponding field match for this fieldValue [/X3D/Scene/ProtoDeclare[3]/ProtoBody/Transform/ProtoInstance[3]/fieldValue, error]<br>
> <ProtoInstance name='nine' DEF=''> <fieldValue name='ztranslation' value='0 0 0'/> has matching ProtoDeclare but no corresponding field match for this fieldValue [/X3D/Scene/ProtoDeclare[4]/ProtoBody/Transform/ProtoInstance[1]/fieldValue, error]<br>
> <ProtoInstance name='nine' DEF=''> <fieldValue name='ztranslation' value='0 0 2'/> has matching ProtoDeclare but no corresponding field match for this fieldValue [/X3D/Scene/ProtoDeclare[4]/ProtoBody/Transform/ProtoInstance[2]/fieldValue, error]<br>
> <ProtoInstance name='nine' DEF=''> <fieldValue name='ztranslation' value='0 0 -2'/> has matching ProtoDeclare but no corresponding field match for this fieldValue [/X3D/Scene/ProtoDeclare[4]/ProtoBody/Transform/ProtoInstance[3]/fieldValue, error]<br>
> <ProtoInstance name='twentyseven' DEF=''> <fieldValue name='ttranslation' value='0 0 0'/> has matching ProtoDeclare but no corresponding field match for this fieldValue [/X3D/Scene/ProtoInstance/fieldValue[1], error]<br>
> <ProtoInstance name='twentyseven' DEF=''> <fieldValue name='myShape' value=''/> has matching ProtoDeclare but no corresponding field match for this fieldValue [/X3D/Scene/ProtoInstance/fieldValue[2], error]<br>
> <br>
> --------- X3D Validator checks complete for rubikFurnace.x3d ---------<br>
> <br>
> ===================================================<br>
> <br>
> Online validator, <a href="https://savage.nps.edu/X3dValidator/" rel="noreferrer" target="_blank">https://savage.nps.edu/X3dValidator/</a> Note hints below, errors above, indicating possible difference in version of schematron. Suggestion to add version to Schematron/Validation/QA to track differences .between local and remote versions. Note that X3D-Edit appears to have a hash in title bar. Perhaps just have a version which is date/time? IDK.<br>
> <br>
> *7. Performing X3D Schematron <<a href="http://www.web3d.org/x3d/tools/schematron/X3dSchematron.html" rel="noreferrer" target="_blank">http://www.web3d.org/x3d/tools/schematron/X3dSchematron.html</a>> check...* <ProtoInstance name='anyShape' DEF=''> <fieldValue name='xtranslation' value='0 0 0'/> has matching ProtoDeclare but no corresponding field match for this fieldValue [/X3D/Scene/ProtoDeclare[2]/ProtoBody/Transform/ProtoInstance[1]/fieldValue, hint] <ProtoInstance name='anyShape' DEF=''> <fieldValue name='xtranslation' value='2 0 0'/> has matching ProtoDeclare but no corresponding field match for this fieldValue [/X3D/Scene/ProtoDeclare[2]/ProtoBody/Transform/ProtoInstance[2]/fieldValue, hint] <ProtoInstance name='anyShape' DEF=''> <fieldValue name='xtranslation' value='-2 0 0'/> has matching ProtoDeclare but no corresponding field match for this fieldValue [/X3D/Scene/ProtoDeclare[2]/ProtoBody/Transform/ProtoInstance[3]/fieldValue, hint] <ProtoInstance name='three' DEF=''> <fieldValue name='ytranslation' value='0 0 0'/> has matching ProtoDeclare but no corresponding field <br>
> match for this fieldValue [/X3D/Scene/ProtoDeclare[3]/ProtoBody/Transform/ProtoInstance[1]/fieldValue, hint] <ProtoInstance name='three' DEF=''> <fieldValue name='ytranslation' value='0 2 0'/> has matching ProtoDeclare but no corresponding field match for this fieldValue [/X3D/Scene/ProtoDeclare[3]/ProtoBody/Transform/ProtoInstance[2]/fieldValue, hint] <ProtoInstance name='three' DEF=''> <fieldValue name='ytranslation' value='0 -2 0'/> has matching ProtoDeclare but no corresponding field match for this fieldValue [/X3D/Scene/ProtoDeclare[3]/ProtoBody/Transform/ProtoInstance[3]/fieldValue, hint] <ProtoInstance name='nine' DEF=''> <fieldValue name='ztranslation' value='0 0 0'/> has matching ProtoDeclare but no corresponding field match for this fieldValue [/X3D/Scene/ProtoDeclare[4]/ProtoBody/Transform/ProtoInstance[1]/fieldValue, hint] <ProtoInstance name='nine' DEF=''> <fieldValue name='ztranslation' value='0 0 2'/> has matching ProtoDeclare but no corresponding field match <br>
> for this fieldValue [/X3D/Scene/ProtoDeclare[4]/ProtoBody/Transform/ProtoInstance[2]/fieldValue, hint] <ProtoInstance name='nine' DEF=''> <fieldValue name='ztranslation' value='0 0 -2'/> has matching ProtoDeclare but no corresponding field match for this fieldValue [/X3D/Scene/ProtoDeclare[4]/ProtoBody/Transform/ProtoInstance[3]/fieldValue, hint] <ProtoInstance name='twentyseven' DEF=''> <fieldValue name='ttranslation' value='0 0 0'/> has matching ProtoDeclare but no corresponding field match for this fieldValue [/X3D/Scene/ProtoInstance/fieldValue[1], hint] <ProtoInstance name='twentyseven' DEF=''> <fieldValue name='myShape' value=''/> has matching ProtoDeclare but no corresponding field match for this fieldValue [/X3D/Scene/ProtoInstance/fieldValue[2], hint] X3D Schematron check: *pass*. Good practice is to fix errors and warnings wherever possible, and consider silencing harmless informational messages, so that important indicators remain noticeable.<br>
> <br>
> <br>
> <br>
> _______________________________________________<br>
> x3d-public mailing list<br>
> <a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a><br>
> <a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" rel="noreferrer" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a><br>
> <br>
<br>
all the best, Don<br>
-- <br>
Don Brutzman Naval Postgraduate School, Code USW/Br <a href="mailto:brutzman@nps.edu" target="_blank">brutzman@nps.edu</a><br>
Watkins 270, MOVES Institute, Monterey CA 93943-5000 USA +1.831.656.2149<br>
X3D graphics, virtual worlds, navy robotics <a href="http://faculty.nps.edu/brutzman" rel="noreferrer" target="_blank">http://faculty.nps.edu/brutzman</a><br>
</blockquote></div></div>