Hi all,
I am try to split the some data out of a nested xml file and get all the
data in one new xml file. I have two XSLT files one takes the personal
information and one takes the data out of the fund section , then I import
each xml files into the datebase and do I relationship between the two.
This is not what my boss wants as he wants one xml file
This is my current XML
<message>
<personal>
<forenames>John </forenames>
<surname>Smit h</surname>
<policynumber>1 23456</policynumber>
<person>
<policydetail s>
<fund>
<code>ABC</code>
<units>123</units>
</fund>
<fund>
<code>xyz</code>
<units>987</units>
</fund>
</policydetails>
</message>
and I am trying to acheive this
<message>
<personal>
<forenames>John </forenames>
<surname>Smit h</surname>
<policynumber>1 23456</policynumber>
<person>
<policydetail s>
<fund>
<code>ABC</code>
<units>123</units>
</fund>
</policydetails>
<personal>
<forenames>John </forenames>
<surname>Smit h</surname>
<policynumber>1 23456</policynumber>
<person>
<policydetail s>
<fund>
<code>xyz</code>
<units>987</units>
</fund>
</policydetails>
</message>
I have been trying with <xsl:for-each> looping through personal and
policydetails but am getting some strange results!! Can somebody please
point me in the right direction.
TIA