I want to add coditional a table, but I get the error "Error (0x80004005): The stylesheet does not contain a document element. The stylesheet may be empty, or it may not be a well-formed XML document."
What I want is this:
<table> <!-- Start main table -->
<tr>
<td>
<table>
<tr>
<th>...</th> <!-- This the table header, it can maybe better, but is not the issue -->
</tr>
</table>
</td>
</tr>
<!-- Here starts the issue first time-->
<x:if test="($ClickPeriod != '')" > <!-- if a new period (month, quater, or year is started, open new table -->
<tr id="'$ClickPeriod'">
<td>
<table id="aRowList" class="Stripy" cellspacing="0" cellpadding="0" style="width:100%;"> <!-- subtable for every period-->
</x:if>
<x:for-each select="//ENTITY"> <!-- add one or more records -->
<tr class="r{position() mod 2}">
<td style="text-align:right; padding-right:10px;">
...
</td>
</tr>
</x:for-each>
<!-- Here starts the issue second time-->
<x:if test="($LastPeriodRow != 'True')" > <!-- if the this record is the last one of a period, close table -->
</table>
</td>
</tr>
</x:if>
</table> <!-- End main table -->
The goal of this is that I can hide with jQuery a row " <tr id="$ClickPeriod">", so that the table within this row is also hidden.
Maybe it is also possible wit a div, but there is also a table header row. Independent of this table header, It must possible to hide the different rows in the subtables. The reason that I try this way is, that it is a part of a framework. All kind of css is already defined. And I know tables are old fashioned but it is not web application for the world.
Can somenone help me out with this? I'm not a guru on XSLT/XSD area!
Regards,
Nico