I have an array of XML <row> elements each of which can then have an array of <query> elements. It looks something like this:
<row><query></query><query></query></row>
<row><query></query><query></query></row>
<row><query></query><query></query></row>
<row><query></query><query></query></row>
I want to print a table in case the query children are different across the row elements and a comma separated string if the query children are same across all the row children.
I am composing an <xsl:when> for this:
<xsl:choose>
  <xsl:when test="[Table condition]">
    <!--code to print table-->
  </xsl:when>
  <xsl:otherwise>
    <!--code to print string-->
  </xsl:otherwise>
</xsl:choose>
What should be the Table Condition?
I am using XSLT v 1.0. I know there is something called deep equals but don't understand how to use it here.
Can you help me here?