• jinusa2007@gmail.com
  • 1-646-580-5887

New WCF schema and other schema with namespace does not work in same way as it was in Biztalk 2009

     -

New WCF schema and other schema with namespace does not work in same way as it was in Biztalk 2009

New WCF schema and other schema with namespace does not work in same way as it was in Biztalk 2009

//CALLINGCARD or ./CALLINGCARD does not work in XSLT foreach loop

We have to add Local name for element and attributes

example "*[local-name()='CALLINGCARD' and namespace-uri()='http://Microsoft.LobServices.Sap/2007/03/Rfc/']"

New WCF schema and other schema with namespace does not work in same way as it was in Biztalk 2009
8-)8-)8-)8-)|-)|-)(bo)(bo)(bo)(bo)(bo)(bo)
Previous code

<xsl:element name="ItemCollection">
<xsl:for-each select="//*[local-name()='Root' and namespace-uri()='http://schemas.microsoft.com/BizTalk/2003/aggschema']/*[local-name()='InputMessagePart_0' and namespace-uri()='']/*[local-name()='TESTRFCMESSAGE' and namespace-uri()='http://Microsoft.LobServices.Sap/2007/03/Rfc/']">

<xsl:element name="Item">

<xsl:element name="Value">
<xsl:attribute name="CssClass">table_item_info</xsl:attribute>
<xsl:attribute name="Text" >
<xsl:value-of select="//CALLINGCARD"/>
</xsl:attribute>
</xsl:element>

<xsl:element name="Value">
<xsl:attribute name="CssClass">table_item_info</xsl:attribute>
<xsl:attribute name="Text" >
<xsl:value-of select="//RESULT"/>
</xsl:attribute>
</xsl:element>

</xsl:element>
</xsl:for-each>

Archives