[x3d-public] Prototype failure - Schematron confusing error message.

vmarchetti at kshell.com vmarchetti at kshell.com
Fri Nov 26 07:43:35 PST 2021


While I don't know if this is a cause of the problem, I do notice that the XML value of the @url attribute of ImageTexture element is not valid XML encoding of MFString; as the 2nd attribute http...ster.jpeg is not enclosed in quotes.

Great to hear from you, Roy

Vince Marchetti


> On Nov 26, 2021, at 10:17 AM, <roy.walmsley at gmail.com> <roy.walmsley at gmail.com> wrote:
> 
> Hi,
>  
> I’m trying to generate an X3D kitchen cupboard door design, using a prototype, so I can get it to draw any size of door. I have the method in theory, but not in practice…
>  
> So, to try to resolve my failure, I downloaded the latest X3D-Edit standalone software for Windows. I then checked my X3D file, and the Schematron section gave me the following messages (and only these two messages):
>  
> <ProtoInstance name='AshfieldDoor' DEF=''> <fieldValue name='doorSize' value='0.597 0.597'/> has matching ProtoDeclare with same name, but no corresponding field match for this fieldValue name='AshfieldDoor' [/X3D/Scene/ProtoInstance/fieldValue[1], error]
> <ProtoInstance name='AshfieldDoor' DEF=''> <fieldValue name='doorAppearance' value=''/> has matching ProtoDeclare with same name, but no corresponding field match for this fieldValue name='AshfieldDoor' [/X3D/Scene/ProtoInstance/fieldValue[2], error]
>  
> For reference: Here’s my ProtoInstance:
>  
>     <ProtoInstance name='AshfieldDoor'>
>       <fieldValue name='doorSize' value='0.597 0.597'/>
>       <fieldValue name='doorAppearance'>
>         <Appearance>
>           <Material/>
>           <ImageTexture DEF='Alabaster' url='"images/Alabaster.jpg" http://localhost/images/Alabaster.jpg'/ <http://localhost/images/Alabaster.jpg'/>>
>         </Appearance>
>       </fieldValue>
>     </ProtoInstance>
>  
> And here’s my ProtoDeclare /  ProtoInterface:
>  
>     <ProtoDeclare name='AshfieldDoor'>
>       <ProtoInterface>
>         <field name='doorSize' accessType='inputOutput' type='SFVec2f' value='0.297 0.297'/>
>         <field name='doorAppearance' accessType='inputOutput' type='SFNode'>
>           <Appearance>
>             <Material diffuseColor='1 0 0'/>
>           </Appearance>
>         </field>
>       </ProtoInterface>
>  
> What’s going on with the Schematron? Why does it think I have fieldValue name=’AshfieldDoor’ ? Is this a Schematron problem? Or a problem with my file?
>  
> Thanks,
> Roy
>  
> _______________________________________________
> x3d-public mailing list
> x3d-public at web3d.org <mailto:x3d-public at web3d.org>
> http://web3d.org/mailman/listinfo/x3d-public_web3d.org <http://web3d.org/mailman/listinfo/x3d-public_web3d.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20211126/e6eb6c5f/attachment-0001.html>


More information about the x3d-public mailing list