After retrieving the results in a rowset from the SQLTransformer, I used
the following fragments:

  <xsl:template match="sql:rowset">
    <table border="1">
      <tr>
      <xsl:for-each select="child::sql:row[position()=1]/*">
        <th><xsl:value-of select="name(.)"/></th>
      </xsl:for-each>
      </tr>
     <xsl:apply-templates/>
    </table>
  </xsl:template>

  <xsl:template match="sql:row">
    <tr>
    <xsl:for-each select="child::node()">
      <td><xsl:value-of select="."/></td>
    </xsl:for-each>
    </tr>
  </xsl:template>

To convert the results of the query into an HTML table.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to