Hi Santhi,
thanks for your reply. I tried it (and it would work), but I found out that my whole idea is not working.
But I still got this issue. My problem is the following:
I've got an xml-file like this (just an example to show the idea):
Code:
<statistics>
<param nRecs="0">
</param>
<param1 nRecs = "0">
</param1>
</statistics>
<statistics>
<param1 nRecs = "0">
</param1>
</statistics>
As you can see, one of the <statistics>-tags is containing the <param>-tag one of them not. In my xslt I created a table, where the rows are printed in the for-each-loops:
Code:
<table>
<tr>
<td>param</td>
<td>param1</td>
</tr>
<tr>
<xsl:for-each select="./statistics/param">
<td><xsl:value-of select="@nRecs"/></td>
</xsl:for-each>
<xsl:for-each select="./statistics/param1">
<td><xsl:value-of select="@nRecs"/></td>
</xsl:for-each>
</tr>
<table>
Now, the problem is that if the param-tag is missing, it won't print out anything. How can I check, if the param-tag is there?
Thanks for any help!!