<%@  page pageEncoding="utf-8" contentType="text/html;charset=utf-8"%>
<%@ taglib uri="/WEB-INF/iman.tld" prefix="iman" %>
<%@ taglib uri="/WEB-INF/x.tld" prefix="x" %>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>

<x:parse var="xml" xml="${xml}"/>

<HTML>
<head>
   <title>iman tag libraray reference</title>
   <style>
      a { color: #039; text-decoration: underline }
      body { background-color: #FFFFFF }
      .TableHeadingColor     { background: #CCCCFF } /* Dark mauve */
   </style>
</head>
<BODY>

   <span style="font-size:30px"> Reference for the iman tag library.</span><br/><br/>
   -The iman tag library is a collections of tags to help developers write iManager plugins.<br/>
   -For sample code see the "properties-jsp-taglibs" example.<br/>
   -For general JSTL (Java Standard Tag Library) reference see <a href="http://java.sun.com/j2ee/1.4/docs/tutorial/doc/index.html">http://java.sun.com/j2ee/1.4/docs/tutorial/doc/index.html</a><br><br>

   <table width="100%" cellspacing="0" cellpadding="3" border="1">
      <tr class="TableHeadingColor" bgcolor="#CCCCFF">
         <td><font size="+2"><b>Tag</b></font></td>
         <td><font size="+2"><b>Description</b></font></td>
      </tr>

      <x:forEach select="$xml/taglib/tag">
      <tr>
         <td><a href="#<x:out select="name"/>"><x:out select="name"/></a></td>
         <td><x:out select="description"/></td>
      </tr>
      </x:forEach>
   </table>
   <br/><br/>

   <x:forEach select="$xml/taglib/tag">
      <table width="100%" cellspacing="0" cellpadding="3" border="1">
         <tr bgcolor="#CCCCFF">
            <td colspan="3"><B><font size="+1"><a style="text-decoration:none; color:black" name="<x:out select="name"/>"><x:out select="name"/></a></font></B> - <x:out select="description"/></td>
         </tr>

         <x:if select="attribute">
            <tr>
               <td><b>Attribute</b></td>
               <td><b>Required</b></td>
               <td width="100%"><b>Description</b></td>
            </tr>
            <x:forEach select="attribute">
               <tr>
                  <td valign="top"><x:out select="name"/></td>
                  <td valign="top" align="center">&nbsp;<x:if select="required='true'">*</x:if></td>
                  <td>&nbsp;<x:out select="description"/></td>
               </tr>
            </x:forEach>
         </x:if>

      </table><br/><br/><br/>
   </x:forEach>

</BODY>
</HTML>
