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>
<company_id>Astea</company_id>
<descr>Astea International Inc.</descr>
<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_1>118 Christie Street</address_1>
<phone_id>+612 8437 3800</phone_id>
<state_prov_id>NSW</state_prov_id>
<country_id>AU</country_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>