;;; This file contains the needed macro to make a page with debian packages. 
;;; Licence: GPL 
;;; Authors: Vincent Danjean

<define-tag description endtag=required>;;;
  <table border=0>
%body
  </table>
</define-tag>

<define-tag legende endtag=required>;;;
   <b><small>%body</small></b>
</define-tag>

<define-tag item-row endtag=required>;;;
  <tr>
    %body
  <item-hitem2></item-hitem2>
  </tr>
</define-tag>

<define-tag item endtag=required>;;;
  <preserve desc/>
  <set-var %attributes/>
  <item-row>
    <if <get-var desc/>
      <group
        <td valign=top rowspan=2>
          <legende>
            <get-var desc/>
          </legende>
        </td>
      />
    />
    <item-item>
      %body
    </item-item>
  </item-row>
  <restore desc/>
</define-tag>

<define-tag hitem endtag=required>;;;
  <preserve desc/>
  <set-var %attributes/>
    <tr>
      <if <get-var desc/>
	<group
	  <td valign=top rowspan=2>
	    <legende>
	      <get-var desc/>
	    </legende>
	  </td>
	/>
      />
      %body
    </tr>
  <restore desc/>
</define-tag>

<define-tag item-item endtag=required>;;;
  <td valign=top rowspan=2>%body</td>
</define-tag>

;;; half item: no rowspan=2
<define-tag item-hitem endtag=required>;;;
  <td>%body</td>
</define-tag>
<define-tag item-whitem endtag=required>;;;
  <td width=100%>%body</td>
</define-tag>

;;; second half
<define-tag item-hitem2 endtag=required>;;;
  </tr><tr><td valign=top colspan=30><small>%body</small></td>
</define-tag>

<define-tag item-legende endtag=required>;;;
   <item-item><legende>%body</legende></item-item>
</define-tag>

<define-tag item-hlegende endtag=required>;;;
   <item-hitem><legende>%body</legende></item-hitem>
</define-tag>

<define-tag hritem><tr><td colspan=30><hr/></td></tr></define-tag>