cancel
Showing results for 
Search instead for 
Did you mean: 

XLST tranformation to HTML

Former Member
0 Kudos
80

Hi Experts...

I wanna know if exists a transformation to put the result of

one SQL Call  into a HTML Table....

I have the next code:


<xsl:template name="transform">

  <xsl:attribute name="pltype">htm</xsl:attribute>

  <FileOut xmlns="" type="file">

       <html>

       <body>

            <table border="1">

                 <tr bgcolor="#9acd32">

                      <th style="text-align:left">ID LLAMADA</th>

                      <th style="text-align:left">Fecha de Creación</th>

                      <th style="text-align:left">Fecha de Resolución</th>

                 </tr>

                <xsl:for-each select="/vpf:Msg/vpf:Body/vpf:Payload[./@id='atom1']/jdbc:ResultSet/jdbc:Row">

                 <tr>

                      <td><xsl:value-of select="./jdbc:callID"/></td>

                      <td><xsl:value-of select="./jdbc:createDate"/></td>

                      <td><xsl:value-of select="./jdbc:closeDate"/></td>

                 </tr>

                 </xsl:for-each>

           </table>

       </body>

       </html>

  </FileOut>

</xsl:template>

But the transformation does not work:

Thanks...

Best regards

Enrique.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Experts....finally can solve my problem...

I Called the scenario with javascript and xmlhttprequest...I used

the xslt tranformation atom  to generate my datatable.

Best regards.

Thanks.

Enrique

Answers (0)