<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE document PUBLIC "-//MAKUMBA//DTD Documentation V2.0//EN" "document-v20-mak.dtd"><document>
    <header>
        <title>mak:count() function documentation</title>
    </header>
    <body>
        <section id="description">
            <title>Description</title>
            <p class="tagDescription">FIXME: no description for this tag in taglib-documented.xml!</p>
        </section>
        <section id="attributes">
            <title/>
        </section>
        <section id="example">
      
          <title>Example</title>      <source>
      <![CDATA[
<mak:list ...>
   <c:if test="${mak:count()==1}">These are the list elements: </c:if>
   <tr bgcolor="${mak:count()%2==1?"white":"grey"}">
        <td>this shows in alternative colors</td>
        ...
   </tr>
   <c:if test="${mak:count()!=mak:maxCount()}">
       a separator where we can have any <b>tag</b> 
       we don't want separators to be shown after the last element 
   </c:if>
</mak:list>
<c:if test="${mak:lastCount()==0}">These are no elements </c:if>
      ]]>
  </source>    </section>
        <section id="seeAlso">
            <title>See also</title>
            <ul>
                <li>
                    <a href="/doc/taglib/makmaxCount.html">mak:maxCount</a>
                </li>
                <li>
                    <a href="/doc/taglib/maklastCount.html">mak:lastCount</a>
                </li>
                <li>
                    <a href="/doc/taglib/makmaxResults.html">mak:maxResults</a>
                </li>
            </ul>
        </section>
    </body>
</document>