I am using xforms:repeat to repeat a table structure like shown below
<table>
<tbody>
<tr>
<th>Column1</th>
<th>Column2</th>
</tr>
<xforms:repeat nodeset='/Root/SomeXpath'>
<tr>
<td>
<xforms:output ref="./anotherXPath1"/>
<td>
<td>
<xforms:output ref="./anotherXPath2"/>
<td>
</tr>
</xforms:repeat>
</tbody>
</table>
The problem here is that anotherXPath1 may not be present in each iteration and in such case an error is displayed on screen. I tried to use xxforms:if to check whether anotherXPath1 exists but it doesn't seem to work. The syntax I used was
<xxforms:if test="./anotherXPath1">
<xforms:output ref="./anotherXPath1"/>
</xxforms:if>
One more problem here is that suppose I want to generate a different class for every alternative row. In this case position of the current node being processed should be known. Is there any function available for that?
Thanks
Abhishek Shrivastava
----------------------------------------------------------------------------------------
This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose.
----------------------------------------------------------------------------------------
