c:for-each

<c:for-each
  name = identifier
  in = expression
  separator? = { string } >
  <!-- Content: (c:sort*, sequence-constructor) -->
</c:for-each>

Processes each item in a sequence of items.

Category
instruction
Permitted parent elements
Any XCST element whose content model is sequence-constructor
Any literal result element

Attributes

in The source of the items.
name The name of the item.
separator A string to intersperse between the results of each processed item.

In addition to the attributes in the preceding table, there are a number of standard attributes that may appear on any XCST element.

Example
<ol class='carousel-indicators'>
   <c:for-each name='i' in='Enumerable.Range(0, slides.Length)'>
      <li data-target='#carousel' data-slide-to='{i}'>
         <c:if test='i == 0'>
            <c:attribute name='class'>active</c:attribute>
         </c:if>
      </li>
   </c:for-each>
</ol>

See Also