[x3d-public] Don't forget to validate X3DJSAIL/CommandLine output.

John Carlson yottzumm at gmail.com
Wed Jun 28 00:25:52 PDT 2023


This attached file, HelloWorldProgramOutput.x3d, was found in
www.web3d.org/x3d/stylesheets/java/examples.  I may need to run an update!
Below is QA output from X3D-Edit 4, NetBeans 18.

It's probably low priority, but I do use this file in some places.

John

Here's the QA results
--------- X3D Validator checks commenced for HelloWorldProgramOutput.x3d
---------

Performing well-formed XML check...
Checking file:/C:/x3d-code/
www.web3d.org/x3d/stylesheets/java/examples/HelloWorldProgramOutput.x3d...
Well-formed XML check: pass

Performing DOCTYPE check...
[X3dDoctypeChecker] success: valid XML declaration
found.[X3dDoctypeChecker] success: final X3D 4.0 DOCTYPE found.

Performing DTD validation...
Checking file:/C:/x3d-code/
www.web3d.org/x3d/stylesheets/java/examples/HelloWorldProgramOutput.x3d...
XML DTD validation: pass

Performing X3D schema validation...
Checking file:/C:/x3d-code/
www.web3d.org/x3d/stylesheets/java/examples/HelloWorldProgramOutput.x3d...
Referenced entity at "
http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd
".
Referenced entity at "http://www.w3.org/2001/XMLSchema.dtd".
Referenced entity at "http://www.w3.org/2001/datatypes.dtd".
XML schema validation: pass

Performing X3D regular expression (regex) values check...
X3D regex check: complete

Performing X3dToX3dvClassicVrmlEncoding.xslt conversion check...
[error] illegal <component name='Layering'/>
[info] <meta name='info' content='continued development and testing in
progress'/>
[warning] Metadata nodes are not supported as a child of current node Text
in VRML97 encoding.  The child MetadataSet node has been moved to
immediately follow the parent Text. Additional Metadata* leaf node(s)
follow that are similarly adjusted. [check X3D source or VRML output to
find questionable <Text/> with parent Shape]
[warning] IS/connect ignored for nodeField='description' since not a
supported field in VRML97 for parent TouchSensor [check X3D source or VRML
output to find questionable TouchSensor]
[warning] Script field 'enabled' has accessType 'inputOutput'
(exposedField), which is only allowed in X3D Script node, not VRML97 Script
node.  Using exposedField anyway, may cause errors. [field 'enabled'
parent  DEF='MaterialModulatorScript']
[warning] Script field 'diffuseColor' has accessType 'inputOutput'
(exposedField), which is only allowed in X3D Script node, not VRML97 Script
node.  Using exposedField anyway, may cause errors. [field 'diffuseColor'
parent  DEF='MaterialModulatorScript']
[warning] ProtoInterface <field name='description'/> is unreferenced in
ProtoBody with no corresponding IS/connect/@protoField [check X3D source or
VRML output to find questionable field 'description' parent ProtoDeclare
NewWorldInfo]
[error] Script node has neither url nor contained code in CDATA section
[check X3D source or VRML output to find erroneous Script]
[warning] no ROUTE found for LoadSensor output  [check X3D source or VRML
output to find questionable LoadSensor]

Performing X3D Schematron check...
X3D version 4.0 is approved by Web3D Consortium and focused on
interoperability with HTML5, glTF2.0 Physically Based Rendering (PBR) and
Web Audio API, undergoing final administrative review by ISO in 2023.
[/X3D, diagnostic]
X3D attribute id='x3dModel.id' is experimental, allowed, and used by X3DOM
when included within HTML page source [/X3D, warning]
<meta name='info' content='continued development and testing in progress'/>
[/X3D/head/meta[2], diagnostic]
<MetadataSet DEF='' USE='' name='topLevelSceneMetadata'/> default
containerField='value' is only allowed when parent node is MetadataSet,
need to explicitly define containerField='metadata' in X3D4 models
[/X3D/Scene/MetadataSet, error]
<MetadataSet DEF='' name='topLevelSceneMetadata'/> element has no child
node [/X3D/Scene/MetadataSet, warning]
<MetadataString DEF='scene.addChildMetadata' USE='' name='test'/> default
containerField='value' is only allowed when parent node is MetadataSet,
need to explicitly define containerField='metadata' in X3D4 models
[/X3D/Scene/MetadataString, error]
<MetadataString DEF='' name='quotesTestC'/> array value='"MFString example
C, backslash-escaped quotes: He said, \"Immel did it!\""' has 4 quote marks
with at least one escaped quote mark \" so double-check to ensure paired
"quote marks" for each line are matched
[/X3D/Scene/Transform[2]/Shape/Text/MetadataSet/MetadataString[1], warning]
<Text DEF='' string='"One, Two, Text" "" "He said, \"Immel did it!\"
\"\""'/> has 10 quote marks with at least one escaped quote mark \" so
double-check to ensure paired "quote marks" for each line are matched
[/X3D/Scene/Transform[2]/Collision/Shape/Text, warning]
<ProtoInstance name='ArtDeco01Material' DEF=''> <fieldValue
name='description' value='ArtDeco01Material can substitute for a Material
node'/> has matching ProtoDeclare with same name, but no corresponding
field match for this fieldValue name='description'
[/X3D/Scene/Shape[2]/Appearance/ProtoInstance/fieldValue, error]
<Script DEF='MaterialModulatorScript'> <field name='diffuseColor'
accessType='inputOutput'/> must define function set_diffuseColor (newValue)
[/X3D/Scene/ProtoDeclare[2]/ProtoBody/Script/field[2], error]
<Script DEF='MaterialModulatorScript'> <field name='diffuseColor'
accessType='inputOutput'/> does not send output event via assignment
statement diffuseColor=___;
[/X3D/Scene/ProtoDeclare[2]/ProtoBody/Script/field[2], warning]
<MetadataString DEF='FindableMetadataStringTest' USE=''
name='findThisNameValue'/> default containerField='value' is only allowed
when parent node is MetadataSet, need to explicitly define
containerField='metadata' in X3D4 models
[/X3D/Scene/Group[2]/Shape/MetadataString, error]
Missing connection for field in ProtoBody: <ProtoDeclare
name='NewWorldInfo'> <ProtoInterface> <field name='description'
accessType='initializeOnly' type='SFString'/> is unused with no
<ProtoDeclare name='NewWorldInfo'> <ProtoBody> ... <IS> <connect
protoField='description' nodeField='someParentNodeFieldName'/> found in
corresponding ProtoBody content
[/X3D/Scene/Group[4]/ProtoDeclare/ProtoInterface/field, warning]
<ProtoInstance name='NewWorldInfo' DEF='Proto1'> <fieldValue
name='description' value='testing 1 2 3'/> has matching ProtoDeclare with
same name, but no corresponding field match for this fieldValue
name='description' [/X3D/Scene/Group[4]/ProtoInstance[1]/fieldValue, error]
<Shape DEF=''/> found without child geometry node [/X3D/Scene/Shape[6],
warning]
<CADFace DEF='' name=''/> element has no child node
[/X3D/Scene/Transform[3]/CADLayer/CADAssembly/CADPart/CADFace, warning]
<EspduTransform DEF=''/> element has no child node
[/X3D/Scene/Transform[3]/EspduTransform, warning]
<DISEntityTypeMapping DEF=''/> containerField='children'incorrect, must be
containerField='mapping'> to match parent DISEntityManager'
[/X3D/Scene/Transform[3]/DISEntityManager/DISEntityTypeMapping, error]
<DISEntityTypeMapping DEF=''/> containerField='children'incorrect, must be
containerField='mapping'> to match parent DISEntityManager'
[/X3D/Scene/DISEntityManager/DISEntityTypeMapping, error]
<LoadSensor/> must have DEF name in order to ROUTE output events
[/X3D/Scene/LoadSensor, warning]
<LoadSensor DEF=''/> children must have containerField='watchList'
[/X3D/Scene/LoadSensor, error]
<LoadSensor DEF=''/> children must be X3DUrlObject node(s)
[/X3D/Scene/LoadSensor, error]
<GeoMetadata DEF=''/> parent LoadSensor is not a geospatial node
[/X3D/Scene/LoadSensor/GeoMetadata, error]
<GeoMetadata DEF=''/> contains node < DEF=''/> with incorrect
containerField (allowed values are 'metadata' and 'data')
[/X3D/Scene/LoadSensor/GeoMetadata, error]
<AudioClip DEF=''/> has no value(s) in url='' array
[/X3D/Scene/LoadSensor/AudioClip, error]
<AudioClip DEF=''/> is missing description which is important for
accessibility and usability.  Example: description='AudioClip sound of ___
is playing...' [/X3D/Scene/LoadSensor/AudioClip, warning]
<ImageCubeMapTexture DEF=''/> has no value(s) in url='' array
[/X3D/Scene/LoadSensor/ImageCubeMapTexture, error]
<ImageTexture DEF=''/> has no value(s) in url='' array
[/X3D/Scene/LoadSensor/ImageTexture, error]
<MovieTexture DEF=''/> has no value(s) in url='' array
[/X3D/Scene/LoadSensor/MovieTexture, error]
<MovieTexture DEF=''/> is missing description which is important for
accessibility and usability.  Example: description='MovieTexture
video/sound of ___ is playing...' [/X3D/Scene/LoadSensor/MovieTexture,
warning]
<Script/> must have DEF name in order to ROUTE events
[/X3D/Scene/LoadSensor/Script, warning]
<Script DEF=''/> needs url or contained CDATA source
[/X3D/Scene/LoadSensor/Script, error]
<ShaderPart DEF='' value=''/> needs to be contained by a <ComposedShader>
node rather than a <> node [/X3D/Scene/LoadSensor/ShaderPart, error]

--------- X3D Validator checks complete for HelloWorldProgramOutput.x3d
---------
--------- X3D Validator online at https://savage.nps.edu/X3dValidator
---------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20230628/da42b958/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: HelloWorldProgramOutput.x3d
Type: model/x3d+xml
Size: 23502 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20230628/da42b958/attachment-0001.x3d>


More information about the x3d-public mailing list