element unit
diagram x3d-4.0_diagrams/x3d-4.0_p264.png
type extension of X3DStatement
properties
content complex
used by
element head
attributes
Name  Type  Use  Default  Fixed  Annotation
class  xs:NMTOKENS        
appinfo

                    The class attribute is a space-separated list of classes, reserved for use by Cascading Style Sheets (CSS) and XML stylesheets.
                    This attribute is only functional if the X3D model is loaded within an HTML page.
               
id  xs:NMTOKEN        
appinfo

                    The id attribute is a unique identifier, reserved for use by HTML5/DOM pages, independent of DEF labeling and internal X3D node referencing.
                    This attribute is only functional if the X3D model is loaded within an HTML page.
               
style  SFString        
appinfo

                    The style attribute provides an inline block of CSS for element styling, reserved for use by Cascading Style Sheets (CSS) and XML stylesheets.
                    This attribute is only functional if the X3D model is loaded within an HTML page.
               
category  unitCategoryChoices  required      
name  xs:NMTOKEN  required      
conversionFactor  derived by: SFDouble  required      
appinfo

                                Warning: conversionFactor is required and must be specified in source document.
                           
annotation
appinfo
<!-- provide default value for API; explicit definition still required in XML documents to avoid assumption errors -->
<xs:attribute name="conversionFactor" type="SFDouble" default="1.0"/>
<xs:attribute name="componentName" type="componentNameChoices" fixed="Core"/>
<xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="1"/>
                Functional summary: unit statement defines data-conversion factors for typed values defined in a scene.
           
source <xs:element name="unit">
 
<xs:annotation>
   
<xs:appinfo>
     
<!-- provide default value for API; explicit definition still required in XML documents to avoid assumption errors -->
     
<xs:attribute name="conversionFactor" type="SFDouble" default="1.0"/>
     
<xs:attribute name="componentName" type="componentNameChoices" fixed="Core"/>
     
<xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="1"/>
                Functional summary: unit statement defines data-conversion factors for typed values defined in a scene.
           
</xs:appinfo>
   
<xs:documentation source="https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/core.html#UNITStatement"/>
 
</xs:annotation>
 
<xs:complexType>
   
<xs:complexContent>
     
<xs:extension base="X3DStatement">
       
<xs:attribute name="category" type="unitCategoryChoices" use="required"/>
       
<xs:attribute name="name" type="xs:NMTOKEN" use="required">
         
<xs:annotation>
           
<xs:documentation source="https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#NameTyping"/>
         
</xs:annotation>
       
</xs:attribute>
       
<xs:attribute name="conversionFactor" use="required">
         
<xs:annotation>
           
<xs:appinfo>
                                Warning: conversionFactor is required and must be specified in source document.
                           
</xs:appinfo>
         
</xs:annotation>
         
<xs:simpleType>
           
<xs:restriction base="SFDouble">
             
<xs:minExclusive value="0"/>
           
</xs:restriction>
         
</xs:simpleType>
       
</xs:attribute>
     
</xs:extension>
   
</xs:complexContent>
 
</xs:complexType>
</xs:element>

attribute unit/@category
type unitCategoryChoices
properties
use required
facets
Kind Value Annotation
enumeration angle
appinfo
angle default is radians
enumeration force
appinfo
force default is newtons
enumeration length
appinfo
length default is meters
enumeration mass
appinfo
mass default is kilograms
source <xs:attribute name="category" type="unitCategoryChoices" use="required"/>

attribute unit/@name
type xs:NMTOKEN
properties
use required
source <xs:attribute name="name" type="xs:NMTOKEN" use="required">
 
<xs:annotation>
   
<xs:documentation source="https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#NameTyping"/>
 
</xs:annotation>
</xs:attribute>

attribute unit/@conversionFactor
type restriction of SFDouble
properties
use required
facets
Kind Value Annotation
minExclusive 0
annotation
appinfo

                                Warning: conversionFactor is required and must be specified in source document.
                           
source <xs:attribute name="conversionFactor" use="required">
 
<xs:annotation>
   
<xs:appinfo>
                                Warning: conversionFactor is required and must be specified in source document.
                           
</xs:appinfo>
 
</xs:annotation>
 
<xs:simpleType>
   
<xs:restriction base="SFDouble">
     
<xs:minExclusive value="0"/>
   
</xs:restriction>
 
</xs:simpleType>
</xs:attribute>


XML Schema documentation generated by XMLSpy Schema Editor http://www.altova.com/xmlspy