Getting the following error in an XSL transform for a REST databroker:
org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is not permitted.
Here's the XSL:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:template match="PCIresponse">
    <dataset>
     <xsl:for-each select="account-set/account">
      <row> 
         <xsl:element name="field">
           <xsl:attribute name="name">name</xsl:attribute>
           <xsl:attribute name="value"><xsl:value-of select="Account_Name" /></xsl:attribute>
         </xsl:element>
      </row>
     </xsl:for-each>
  </dataset>
</xsl:template>