Attribute Mapping Samples


Let's examine some sample instances to understand how attribute mapping functions in the XML generation process.
Akeneo Locales SFCC Locales SFCC Websites
en_FR, fr_FR, en_CH, fr_CH en, fr Website_FR, Website_CH

Presented below are several XML outputs derived from the imaginary setup.
SFCC Attr display-name
Section System
Attribute String
Localized No
Default Locale No
Site Specific No
        
    <display-name>Sunglasses</display-name>
        

SFCC Attr display-name
Section System
Attribute String
Localized Yes
Default Locale No
Site Specific No
        
    <display-name xml:lang="en">Sunglasses</display-name>
    <display-name xml:lang="fr">Des lunettes de soleil</display-name>
        

SFCC Attr display-name
Section System
Attribute String
Localized Yes
Default Locale Yes
Site Specific No
        
    <display-name xml:lang="x-default">Sunglasses</display-name>
    <display-name xml:lang="fr">Des lunettes de soleil</display-name>
        

SFCC Attr frame-color
Section Custom
Attribute String
Localized Yes
Default Locale Yes
Site Specific No
        
    <custom-attribute attribute-id="frame-color" xml:lang="x-default">Black</custom-attribute>
    <custom-attribute attribute-id="frame-color" xml:lang="fr">Noir</custom-attribute>
        

SFCC Attr range-support
Section Custom
Attribute Boolean
Localized No
Default Locale No
Site Specific Yes
        
    <custom-attribute attribute-id="range-support" site-id="Website_FR">true</custom-attribute>
    <custom-attribute attribute-id="range-support" site-id="Website_CH">true</custom-attribute>
        

Source Online France
SFCC Attr online-flag
Section Online
Attribute Boolean
Localized No
Default Locale No
Site Specific Yes
Site Website_FR
        
    <online-flag site-id="Website_FR">true</online-flag>
        

Source Online Switzerland
SFCC Attr online-flag
Section Online
Attribute Boolean
Localized No
Default Locale No
Site Specific Yes
Site Website_CH
        
    <online-flag site-id="Website_CH">false</online-flag>
        

SFCC Attr color
Section Custom
Attribute Single Select Array
Localized No
Default Locale No
            
    <custom-attribute attribute-id="color">
        <value>black</value>
    </custom-attribute>