unit

The unit element contains descriptive information about unit of measure. It has attributes for 
the name of the unit and the measurement with respect to the meter. The unit element may appear 
zero or one time.

Element Information

Model

Attributes

QName Type Fixed Default Use Inheritable Annotation
meter float_type 1.0 optional
The meter attribute specifies the measurement with respect to the meter. The default 
value for the meter attribute is "1.0".
name xs:NMTOKEN meter optional
The name attribute specifies the name of the unit. The default value for the name 
attribute is "meter".

Source

<xs:element name="unit" minOccurs="0">
  <xs:annotation>
    <xs:documentation>The unit element contains descriptive information about unit of measure. It has attributes for the name of the unit and the measurement with respect to the meter. The unit element may appear zero or one time.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:attribute name="meter" type="float_type" default="1.0">
      <xs:annotation>
        <xs:documentation>The meter attribute specifies the measurement with respect to the meter. The default value for the meter attribute is "1.0".</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="name" type="xs:NMTOKEN" default="meter">
      <xs:annotation>
        <xs:documentation>The name attribute specifies the name of the unit. The default value for the name attribute is "meter".</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
</xs:element>

Sample

< asset xmlns = "http://www.collada.org/2008/03/COLLADASchema" >

< contributor>

< author/>

< authoring_tool>

RenderMonkey

</ authoring_tool>

< comments>

Output from RenderMonkey COLLADA Exporter

</ comments>

< copyright/>

< source_data/>

</ contributor>

< created>

2008-03-27T20:31:16Z

</ created>

< modified>

2008-03-27T20:31:16Z

</ modified>

< unit meter = "0.01" name = "centimeter" />

< up_axis>

Y_UP

</ up_axis>

</ asset>