AnsweredAssumed Answered

Call Web Service XML result processing question

Question asked by nmjohns on Oct 3, 2017
Latest reply on Oct 3, 2017 by nmjohns

My Call Web Service action returns the information I need. I'm trying to Nintex Workflow - XSL Transformation - Vadim Tabakman  by Vadim Tabakman but my workflow is erroring with the message:

Failed to invoke web service. 'xsl:stylesheet' element cannot have text node children.

I've even dumbed down my results to make sure it wasn't one specific return that was ruining everything. Here's my current XSL transform code:

 

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

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output indent="no" method="html"/> -<xsl:template match="/" name="ShowVariables">
  <html>
   <body>
    <h2>My Items</h2>
    <table border="1">
     <tr bgcolor="#9acd32">
      <th>Center Name</th>
     </tr>
     <xsl:for-each select="//*[name()='z:row']">
      <tr>
       <td>
        <xsl:value-of select="@ows_CenterName"/>
       </td>
      </tr>
     </xsl:for-each>
    </table>
   </body>
  </html>
</xsl:template>
</xsl:stylesheet>

What am I doing wrong here? Am I missing something simple? 

Outcomes