AnsweredAssumed Answered

XSL transformation to xml in context variable giving exception

Question asked by Siva.Vasipally on Feb 17, 2016
Latest reply on Mar 15, 2016 by jl7ag

Am trying to convert the xml in the context variable to html using the apply xsl transformation

Step1 :

set context variable ,

custdetatilsRec - is the variable name, Data type as message

 

<?xml version="1.0" encoding="UTF-8"?>

<customers>

<customer>

  <Name>Siva</Name>

  <Role>Admin</Role>

</customer>

<customer>

  <Name>ram</Name>

  <Role>Developer</Role>

</customer>

</customers>

 

Step 2:

 

apply xsl transformation

<?xml version="1.0" encoding="UTF-8"?>

< xsl:stylesheet version="1.0"

xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

 

< xsl:template match="/">

   <html>

   <body>

       <h2>List of customers</h2>

       <table border="1">

             <tr bgcolor="#9acd32">

                   <th>Name</th>

                   <th>Role</th>

             </tr>

             <tr>

                 <td><xsl:value-of select="customers/customer/Name"/></td>

                 <td><xsl:value-of select="customers/customer/Role"/></td>

             </tr>

       </table>

   </body>

   </html>

< /xsl:template>

 

< /xsl:stylesheet>

 

ourput variable as : xslt1

 

Step 3:

return response to requestor

${xslt1.messages.first}

 

getting the blank message :

<data contentType="text/xml;charset=UTF-8" contentLength="0"><![CDATA[]]></data>

 

Requesting for your suggestions where went wrong................. attached the policy...@

Attachments

Outcomes