I want to create XSLT schema to transform my xml record. Here is an example of incoming xml
<Target>
<name1>AMRXQUAL</name1>
<name2>0</name2>
<name3>217</name3>
<name4>72</name4>
</Target>
This is expected output after xslt transformation :
<Target>
<string_fields>
<name1>AMRXQUAL</name1>
</string_fields>
<int_fields>
<name2>0</name2>
<name3>217</name3>
<name4>72</name4>
</int_fields>
</Target>
The idea is to check type of each element in Target and then move it to corresponding element on root level. If element type is integer we move it to int_fields, if element is string - we move it to string_fields and so on . Thank you in advance !