How to get through Derivation type in BizTalk Map

Home Page Forums BizTalk 2004 – BizTalk 2010 How to get through Derivation type in BizTalk Map

Viewing 1 reply thread
  • Author
    Posts
    • #24114

      Hi I have a source which has Derivation Types in it, means when I click on that node it shows derivation Type in Properties pane so when i map to my destination schema which is normal schema with records, elements and attributes , I am not getting the correct result that I want so I ma planning to write XSLT code in the scripting functoid, now my problem is I am not able to go through that derivation type my whole data is in that derivation type, I want to know how to write XSLT code to come upto that derivation type and access data under it. please give me a sample code on how to write XSLT code for my requirement.

       

      Thanks in Advance

    • #24120

      Typically derived types are represented as

      <BaseType xsi:type=”DerivedType”>

      In your Xslt you need to use a predicate e.g

      <xsl:for-each select=”/root/BaseType[xsi:type=’DerivedType’]”>
      or
      <xsl:value-of select=”/root/BaseType[xsi:type=’DerivedType’]/field”/>

      I would suggest using a custom xslt file rather than a scripting functoid. You will get to use an Xml editor rather than a text window.
      http://msdn.microsoft.com/en-us/library/aa560154(BTS.20).aspx

      • #24124

        Thanks for you reply I have one more question, I am able to get the desired output now but I am using .xsl to get the output because I have used xsi:type in my scripting functoid and its throwing error coz I have not declare xsi so when I am trying to declare xsi in the template its not accepting so I am using .xsl in my map, but I want to know whether its possible to declare xsi:type in template and not using any .xsl in my map?

        Thanks

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.