<core:FragmentDefinition
        xmlns="sap.m"
        xmlns:core="sap.ui.core"
        xmlns:ovp="sap.ovp.ui"
        xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1">

    <template:if test="{= ${ovpCardProperties>/imageSupported} &amp;&amp; ${ovpCardProperties>/listType} === 'condensed' }" >

        <template:then>
            <core:Fragment fragmentName="sap.ovp.cards.list.StandardListImage" type="XML"/>
        </template:then>

        <template:else>
            <List id="ovpList" items="{parts:[{path:'entitySet>'}, {path:'ovpCardProperties>/annotationPath'}], formatter: 'sap.ovp.cards.AnnotationHelper.formatItems'}" class = "listCardType">
                <template:with path='ovpCardProperties>/annotationPath' helper="sap.ovp.cards.AnnotationHelper.resolveEntityTypePath" var='lineItem'>
                    <template:if test="{= ${ovpCardProperties>/listType} === 'extended'}" >
                        <template:then>
                            <template:if test="{= ${ovpCardProperties>/listFlavor} === 'bar'}" >
                                <template:then>
                                    <customData>
                                        <ovp:CustomData key="aria-label" value="{ovplibResourceBundle>barChartCard}" writeToDom="true" />
                                    </customData>
                                    <core:Fragment fragmentName="sap.ovp.cards.list.ExtendedBarList" type="XML"/>
                                </template:then>
                                <template:else>
                                    <customData>
                                        <ovp:CustomData key="aria-label" value="{ovplibResourceBundle>listCard}" writeToDom="true" />
                                    </customData>
                                    <core:Fragment fragmentName="sap.ovp.cards.list.ObjectList" type="XML"/>
                                </template:else>
                            </template:if>
                        </template:then>
                        <template:else>
                            <template:if test="{= ${ovpCardProperties>/listFlavor} === 'bar'}" >
                                <template:then>
                                    <customData>
                                        <ovp:CustomData key="aria-label" value="{ovplibResourceBundle>barChartCard}" writeToDom="true" />
                                    </customData>
                                    <core:Fragment fragmentName="sap.ovp.cards.list.CondensedBarList" type="XML"/>
                                </template:then>
                                <template:else>
                                    <customData>
                                        <ovp:CustomData key="aria-label" value="{ovplibResourceBundle>listCard}" writeToDom="true" />
                                    </customData>
                                    <core:Fragment fragmentName="sap.ovp.cards.list.StandardList" type="XML"/>
                                </template:else>
                            </template:if>
                        </template:else>
                    </template:if>
                </template:with>
            </List>
        </template:else>

    </template:if>

</core:FragmentDefinition>