Getting an error from the map:
Output validation error: The 'PARTNER' attribute is not declared.
The attribute in question is generated by the script:
Code:
<PRT>
<xsl:for-each select="/s2:Invoice/s2:InvoiceHeader/s2:ListOfNameValueSet/s0:NameValueSet[s0:SetName/text() = 'Data']">
<xsl:attribute name="PARTNER">
<xsl:value-of select="s0:ListOfNameValuePair/s0:NameValuePair[s0:Name/text() = 'Partner']/s0:Value/text()"/>
</xsl:attribute>
<xsl:attribute name="PRICE">
<xsl:value-of select="s0:ListOfNameValuePair/s0:NameValuePair[s0:Name/text() = 'Price']/s0:Value/text()"/>
</xsl:attribute>
</xsl:for-each>
</PRT>
Using the input file:
<PRT PARTNER="CUSTOMER" PRICE="UNSPECIFIED"></PRT>
The map generates XML:
Code:
<PRT PARTNER="CUSTOMER" PRICE="UNSPECIFIED"></PRT>
I am not sure why it generates the error of that kind, as the attribute is clearly in the XML output.