parse a comma seperated string in different nodes #xslt 2.0



Below is the XML input:



<performer>
<assignedEntity classCode="ASSIGNED">
<id root="123"/>
<addr>219 city, state, DE, 199</addr>
<assignedPerson classCode="PSN">
<name>Last , First , Middle, 12345</name>
</assignedPerson>
</assignedEntity>
</performer>


Expected XML output:



<Provider>
<ID>12345</ID>
<FName>First</Fname>
<Lname>Last</Lname>
</Provider>


Please give a generalized solution, the above example that I gave does not have fixed text values, these are subject to change.


Thanks,


No comments:

Post a Comment