Other Languages - Inline Xslt Call template - Asked By Antariksh Mistry on 06-Jan-12 11:34 PM

I have a xml i/p instance which has one field called action.
When i generate an o/p instance 2 more actions needs to get generated..
these action generated will have attributes with values..

I m using a BizTalk map for this. I have used a script functoid and connect it to the destination node which has an action.
but i m unable to write an xslt which will help in recursion so that other 2 actions will get created ,

The destination xsd has one action field. the other fields i want to populate in output instance are :
action name="declare",  action name="calculate formula", action name="data" ....

How can i write the xslt, please advice ....

- <action name="declare">
  <attribute dtype="string" name="ContactID" value="" />
  </action>
- <action name="calculateformula">
  <attribute out_var="ContactID" formula_name="contact_id" />
  </action>
- <action name="data">
- <main>
- <row number="1">
  <company_id>Astea</company_id>
  <descr>Astea International Inc.</descr>
  <status_id>C</status_id>
  <is_site>N</is_site>
  <is_legal>Y</is_legal>
  <is_active>Y</is_active>
  <def_node_id>SYD</def_node_id>
  <currency_id>AUD</currency_id>
  <prm_pbookh_id>MAIN</prm_pbookh_id>
  <cc_contact_id in_var="ContactID">in_var</cc_contact_id>
  <cc_contact_first_name>James Howlett</cc_contact_first_name>
  <cc_contact_last_name>.</cc_contact_last_name>
  <cc_phone_id>+612 8437 3809</cc_phone_id>
  </row>
  </main>
- <address_xref>
- <row number="1">
  <address_1>118 Christie Street</address_1>
  <city>St Leonards</city>
  <zip>2065</zip>
  <phone_id>+612 8437 3800</phone_id>
  <state_prov_id>NSW</state_prov_id>
  <country_id>AU</country_id>
  <fax_phone_id />
  <email_id>Support.APAC@astea.com</email_id>
  <is_primary>N</is_primary>
  <cc_validate_address_coding>N</cc_validate_address_coding>
  </row>
  </address_xref>
  </action>

Hi, i want to hard code the action values using xslt ..... - Antariksh Mistry replied to Antariksh Mistry on 08-Jan-12 10:16 PM

end of post

Hi, i want to hard code the action values using xslt ..... - Asked By Antariksh Mistry on 08-Jan-12 10:17 PM

end of post