在 REST 数据代理的 XSL 转换中出现以下错误:
org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is not permitted.
这是 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>