element unit
diagram x3d-3.3_p240.png
type extension of SceneGraphStructureStatement
properties
content complex
used by
element head
attributes
Name  Type  Use  Default  Fixed  Annotation
category  unitCategories  required      
name  xs:NMTOKEN  required      
conversionFactor  derived by: SFDouble  required      
annotation
appinfo
<!-- provide default value for API; explicit definition still required for XML to avoid assumption errors -->
<xs:attribute name="conversionFactor" type="SFDouble" default="1.0"/>
<xs:attribute name="componentName" type="xs:NMTOKEN" 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 for XML to avoid assumption errors -->
     
<xs:attribute name="conversionFactor" type="SFDouble" default="1.0"/>
     
<xs:attribute name="componentName" type="xs:NMTOKEN" 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="http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/core.html#UNITStatement"/>
 
</xs:annotation>
 
<xs:complexType>
   
<xs:complexContent>
     
<xs:extension base="SceneGraphStructureStatement">
       
<xs:attribute name="category" type="unitCategories" use="required"/>
       
<xs:attribute name="name" type="xs:NMTOKEN" use="required"/>
       
<xs:attribute name="conversionFactor" use="required">
         
<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 unitCategories
properties
use required
facets
Kind Value Annotation
enumeration angle
enumeration force
enumeration length
enumeration mass
source <xs:attribute name="category" type="unitCategories" use="required"/>

attribute unit/@name
type xs:NMTOKEN
properties
use required
source <xs:attribute name="name" type="xs:NMTOKEN" use="required"/>

attribute unit/@conversionFactor
type restriction of SFDouble
properties
use required
facets
Kind Value Annotation
minExclusive 0
source <xs:attribute name="conversionFactor" use="required">
 
<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