A Possible Canonical Extension XML

The following canonical extension XML is a continuation of the canonical definitions in the raw extension XML file.

Within the canonical extension XML file, you define some characteristics for each canonical item:
  • localizable: is the written content about this item going to occur in multiple languages
  • collection: is this item actually a collection of items
  • type: what is the data type of this item
  • primaryKey: is this item the primary identifier for a group of items
<extension xmlns="http://www.hybris.com/schema/" name="base-canonical-datahub-extension">
    <canonicalItems>
        <item>
            <type>CanonicalProduct</type>
            <attributes>
                <attribute>
                    <name>identifier</name>
                    <model>
                        <localizable>false</localizable>
                        <collection>false</collection>
                        <type>String</type>
                        <primaryKey>true</primaryKey>
                    </model>
                </attribute>
                <attribute>
                    <name>name</name>
                    <model>
                        <localizable>false</localizable>
                        <collection>false</collection>
                        <type>String</type>
                        <primaryKey>false</primaryKey>
                    </model>
                </attribute>
                <attribute>
                    <name>description</name>
                    <model>
                        <localizable>false</localizable>
                        <collection>false</collection>
                        <type>String</type>
                        <primaryKey>false</primaryKey>
                    </model>
                </attribute>
                <attribute>
                    <name>barCode</name>
                    <model>
                        <localizable>false</localizable>
                        <collection>false</collection>
                        <type>String</type>
                        <primaryKey>false</primaryKey>
                    </model>
                </attribute>
                <attribute>
                    <name>manName</name>
                    <model>
                        <localizable>false</localizable>
                        <collection>false</collection>
                        <type>String</type>
                        <primaryKey>false</primaryKey>
                    </model>
                </attribute>
                <attribute>
                    <name>manAid</name>
                    <model>
                        <localizable>false</localizable>
                        <collection>false</collection>
                        <type>String</type>
                        <primaryKey>false</primaryKey>
                    </model>
                </attribute>
                <attribute>
                    <name>unit</name>
                    <model>
                        <localizable>false</localizable>
                        <collection>false</collection>
                        <type>String</type>
                        <primaryKey>false</primaryKey>
                    </model>
                </attribute>
                <attribute>
                    <name>style</name>
                    <model>
                        <localizable>false</localizable>
                        <collection>false</collection>
                        <type>String</type>
                        <primaryKey>false</primaryKey>
                    </model>
                </attribute>
                <attribute>
                    <name>size</name>
                    <model>
                        <localizable>false</localizable>
                        <collection>false</collection>
                        <type>String</type>
                        <primaryKey>false</primaryKey>
                    </model>
                </attribute><attribute>
                    <name>sku</name>
                    <model>
                        <localizable>false</localizable>
                        <collection>false</collection>
                        <type>String</type>
                        <primaryKey>false</primaryKey>
                    </model>
                </attribute>
                <attribute>
                    <name>category</name>
                    <model>
                        <localizable>false</localizable>
                        <collection>false</collection>
                        <type>String</type>
                        <primaryKey>false</primaryKey>
                    </model>
                </attribute>
                <attribute>
                    <name>styleName</name>
                    <model>
                        <localizable>false</localizable>
                        <collection>false</collection>
                        <type>String</type>
                        <primaryKey>false</primaryKey>
                    </model>
                </attribute>
                <attribute>
                    <name>styleDescription</name>
                    <model>
                        <localizable>false</localizable>
                        <collection>false</collection>
                        <type>String</type>
                        <primaryKey>false</primaryKey>
                    </model>
                </attribute>
            </attributes>
        </item>
    </canonicalItems>
</extension>