[x3d-public] Change of field type to NMTOKEN

Andreas Plesch andreasplesch at gmail.com
Wed Nov 8 08:53:12 PST 2023


The field 'name' of FloatvertexAttribute has now the type NMTOKEN in
the tooltips:

https://www.web3d.org/x3d/tooltips/X3dTooltips.html#FloatVertexAttribute.name

This is due to a change in the schema from addressing Holger's list.

I think before the change the type was SFString as defined in the
spec. Should type NMTOKEN only be used for XML attributes and not for
X3D fields ?

I only noticed because now the stylesheet generating x3d.py produces
invalid python 'FieldType.xs:NMTOKEN' instead of 'FieldType.SFString'.

$ python3 x3d.py
('name', '', FieldType.xs:NMTOKEN, AccessType.initializeOnly,
'X3DVertexAttributeNode'),
                             ^
SyntaxError: invalid syntax

Probably best to wait until the dust settles more but I thought I may
mention now.

-Andreas

-- 
Andreas Plesch
Waltham, MA 02453



More information about the x3d-public mailing list