| | 1848 | |
|---|
| | 1849 | <!-- Category --> |
|---|
| | 1850 | <tr> |
|---|
| | 1851 | <td class="fieldName"> |
|---|
| | 1852 | Categories: |
|---|
| | 1853 | </td> |
|---|
| | 1854 | <td> |
|---|
| | 1855 | <table cellpadding="0" id="allCategoryCheckboxes"> |
|---|
| | 1856 | <tr> |
|---|
| | 1857 | <xsl:variable name="catCount" select="count(/bedework/formElements/form/categories/all/category)"/> |
|---|
| | 1858 | <td> |
|---|
| | 1859 | <xsl:for-each select="/bedework/formElements/form/categories/all/category[position() <= ceiling($catCount div 2)]"> |
|---|
| | 1860 | <input type="checkbox" name="categoryKey"> |
|---|
| | 1861 | <xsl:attribute name="value"><xsl:value-of select="keyword"/></xsl:attribute> |
|---|
| | 1862 | <xsl:value-of select="keyword"/> |
|---|
| | 1863 | </input><br/> |
|---|
| | 1864 | </xsl:for-each> |
|---|
| | 1865 | </td> |
|---|
| | 1866 | <td> |
|---|
| | 1867 | <xsl:for-each select="/bedework/formElements/form/categories/all/category[position() > ceiling($catCount div 2)]"> |
|---|
| | 1868 | <input type="checkbox" name="categoryKey"> |
|---|
| | 1869 | <xsl:attribute name="value"><xsl:value-of select="keyword"/></xsl:attribute> |
|---|
| | 1870 | <xsl:value-of select="keyword"/> |
|---|
| | 1871 | </input><br/> |
|---|
| | 1872 | </xsl:for-each> |
|---|
| | 1873 | </td> |
|---|
| | 1874 | </tr> |
|---|
| | 1875 | </table> |
|---|
| | 1876 | </td> |
|---|
| | 1877 | </tr> |
|---|
| | 1878 | |
|---|
| | 2351 | </td> |
|---|
| | 2352 | </tr> |
|---|
| | 2353 | <!-- Category --> |
|---|
| | 2354 | <tr> |
|---|
| | 2355 | <td class="fieldName"> |
|---|
| | 2356 | Categories: |
|---|
| | 2357 | </td> |
|---|
| | 2358 | <td> |
|---|
| | 2359 | <table cellpadding="0" id="allCategoryCheckboxes"> |
|---|
| | 2360 | <tr> |
|---|
| | 2361 | <xsl:variable name="catCount" select="count(/bedework/formElements/form/categories/all/category)"/> |
|---|
| | 2362 | <td> |
|---|
| | 2363 | <xsl:for-each select="/bedework/formElements/form/categories/all/category[position() <= ceiling($catCount div 2)]"> |
|---|
| | 2364 | <input type="checkbox" name="categoryKey"> |
|---|
| | 2365 | <xsl:attribute name="value"><xsl:value-of select="keyword"/></xsl:attribute> |
|---|
| | 2366 | <xsl:if test="keyword = /bedework/formElements/form/categories/current//category/keyword"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if> |
|---|
| | 2367 | <xsl:value-of select="keyword"/> |
|---|
| | 2368 | </input><br/> |
|---|
| | 2369 | </xsl:for-each> |
|---|
| | 2370 | </td> |
|---|
| | 2371 | <td> |
|---|
| | 2372 | <xsl:for-each select="/bedework/formElements/form/categories/all/category[position() > ceiling($catCount div 2)]"> |
|---|
| | 2373 | <input type="checkbox" name="categoryKey"> |
|---|
| | 2374 | <xsl:attribute name="value"><xsl:value-of select="keyword"/></xsl:attribute> |
|---|
| | 2375 | <xsl:if test="keyword = /bedework/formElements/form/categories/current//category/keyword"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if> |
|---|
| | 2376 | <xsl:value-of select="keyword"/> |
|---|
| | 2377 | </input><br/> |
|---|
| | 2378 | </xsl:for-each> |
|---|
| | 2379 | </td> |
|---|
| | 2380 | </tr> |
|---|
| | 2381 | </table> |
|---|