[x3d-public] instantReality has incorrect syntax for EXPORT statement

Don Brutzman brutzman at nps.edu
Wed Jan 25 06:06:37 PST 2017


Bug report

1. The attached scene, maintained at

	http://www.web3d.org/specifications/java/examples/HelloWorldProgramOutput.x3d

includes the statement

         <EXPORT AS='WorldInfoDEF3' localDEF='WorldInfoDEF'/>

which appears to be legal according to

	9.2.6 EXPORT statement
	http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/networking.html#EXPORTStatement

However instantReality reports

=======================
FATAL	Avalon	 No valid _defaultRootNodeType
WARNING	Avalon	 Could not find node type: >unit<
FATAL	Avalon	 No valid _defaultRootNodeType
WARNING	Avalon	 Could not find node type: >unit<
WARNING	Avalon	 Box/144837616: Unknown Field: class
WARNING	Avalon	 Invalid Field name description in fieldValue
WARNING	Avalon	 XMLLoader Error: obligatory attr 'exportedDEF' in elem 'IMPORT' missing
WARNING	Avalon	 Scanner: parsing aborted:X3D, file:///C:/x3d-code/www.web3d.org/x3d/stylesheets/java/examples/HelloWorldProgramOutput.x3d:143
WARNING	Avalon	 ArtDeco01 without component, cannot unregister
WARNING	Avalon	 ArtDeco02 without component, cannot unregister
FATAL	Avalon	 Failed to load file:///C:/x3d-code/www.web3d.org/x3d/stylesheets/java/examples/HelloWorldProgramOutput.x3d
=======================

it looks like your element 'IMPORT' is looking for an obligatory attribute 'exportedDEF' but that is incorrect (that might have been the initial name when first proposed).

The correct attribute is 'AS' and usage is optional.

	X3D v3.3 DOCTYPE documentation: EXPORT
	http://www.web3d.org/specifications/X3dDoctypeDocumentation3.3.html#EXPORT

	X3D v3.3 Schema documentation: EXPORT
	http://www.web3d.org/specifications/X3dSchemaDocumentation3.3/x3d-3.3_EXPORT.html

2. Support for the class attribute and UNIT statement would also be appreciated.

	4.3.6 class attribute syntax
	http://www.web3d.org/documents/specifications/19776-1/V3.3/Part01/concepts.html#ClassAttributeSyntax

	7.2.5.5 UNIT statement
	http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/core.html#UNITStatement

(syntax for .x3d encoding is 'unit')

	X3D v3.3 DOCTYPE documentation: unit
	http://www.web3d.org/specifications/X3dDoctypeDocumentation3.3.html#unit

	X3D v3.3 Schema documentation: unit
	http://www.web3d.org/specifications/X3dSchemaDocumentation3.3/x3d-3.3_unit.html

3. I think the ArtDeco02 prototype is working OK, not sure what those unregister diagnostics are.  Also the warning "Invalid Field name description in fieldValue" appears to be incorrect, there is a field name description that is properly declared and re-initialized using fieldValue.

4. Ongoing validation testing of this developmental scene remains available at

https://savage.nps.edu/X3dValidator?url=http://www.web3d.org/specifications/java/examples/HelloWorldProgramOutput.x3d

Thanks for your efforts with InstantReality, it is really great.

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 --------------
A non-text attachment was scrubbed...
Name: HelloWorldProgramOutput.x3d
Type: model/x3d+xml
Size: 13857 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170125/4b3402a1/attachment.x3d>


More information about the x3d-public mailing list