title: Show counter / index in SAPUI5 List Control through XML view
body: <p>Is there a way to access an internal counter or index property of list items in an XML view, while iterating over the items of a SAPUI5 List control? The use case could be to simply enumerate the items. Or in my case it would be to give a special treatment to the very first list item.</p>
  <p>What I am looking for is something like the hypothetical <code>$counter</code> in the following example:</p>
  <pre><code>  &lt;List items=&quot;{MyModel&gt;/MyRootElement}&quot;&gt;
      &lt;items&gt;
        &lt;CustomListItem&gt;
          &lt;Text text=&quot;This is element number {MyModel&gt;$counter}.&quot; /&gt;
        &lt;/CustomListItem&gt;
      &lt;/items&gt;
    &lt;/List&gt;
  </code></pre>
  <p>I know I can solve this using JS in the controller. But I would be interested in a pure XML solution.</p>