Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Problems with mappings › Problems with mappings
You can use an XSLT Template in a map like this:
Connect <cromatografia> to a Scripting Functoid (Advanced) and connect output to <Tag>
Within the functoid select [b:f8571d04b4]Inline XSLT Call Template[/b:f8571d04b4] and add the following xsl code
[code:1:f8571d04b4]<xsl:template name=\"TagTemplate\">
<xsl:param name=\"param1\" />
<xsl:for-each select=\"$param1/@*\">
<xsl:element name=\"Tag\">
<xsl:element name=\"Description\">
<xsl:value-of select=\"local-name()\" />
</xsl:element>
<xsl:element name=\"Value\">
<xsl:value-of select=\".\" />
</xsl:element>
</xsl:element>
</xsl:for-each>
</xsl:template>[/code:1:f8571d04b4]
I had a small problem with this on BTS2006 as my BTS2004 dev environment is undergoing maintenance currently.
If this does not work can you post the XSL output from the map.