[x3d-public] 2 different schematrons? I'm fairly sure things are up to date, will check into diffs.

John Carlson yottzumm at gmail.com
Mon Jun 14 12:21:04 PDT 2021


I did notice it was a hint and not an error on the validator web page.

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.

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 .

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.

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.

John
On Mon, Jun 14, 2021 at 12:41 PM Don Brutzman <brutzman at nps.edu> wrote:

> 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.
>
> Pretty convoluted design...  nested prototypes have always been quite
> difficult for players to implement.
>
> Wondering: is there a need to be so convoluted?  Also wondering if any of
> our players work with this?
>
> Meanwhile I checked the logic of X3D Schematron rules for fieldValue
> checking, namely the rules based on protoFieldFound and
> externProtoFieldFound.  No logical errors detected.
>
> Not sure why you are getting these Schematron errors but will look at it
> further, at the moment they seem to be inappropriate.
>
>
>
> On 6/11/2021 11:32 AM, John Carlson wrote:
> > ==========================================
> >
> > Standalone June 11 X3D-Edit:  Note that errors are reported. I need help
> figuring out what's wrong.  Attached rubikFurnace.x3d
> >
> >
> > Performing X3D Schematron 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,
> error]
> > <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]
> > <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]
> > <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]
> > <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]
> > <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]
> > <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]
> > <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]
> > <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]
> > <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]
> > <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]
> >
> > --------- X3D Validator checks complete for rubikFurnace.x3d ---------
> >
> > ===================================================
> >
> > Online validator, https://savage.nps.edu/X3dValidator/ 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.
> >
> > *7. Performing X3D Schematron <
> http://www.web3d.org/x3d/tools/schematron/X3dSchematron.html> 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
> > 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
> > 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.
> >
> >
> >
> > _______________________________________________
> > x3d-public mailing list
> > x3d-public at web3d.org
> > http://web3d.org/mailman/listinfo/x3d-public_web3d.org
> >
>
> all the best, Don
> --
> Don Brutzman  Naval Postgraduate School, Code USW/Br
> brutzman at nps.edu
> Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149
> X3D graphics, virtual worlds, navy robotics
> http://faculty.nps.edu/brutzman
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20210614/1e8a815e/attachment.html>


More information about the x3d-public mailing list