MSH.1:MSH.2:MSH.3:PID.1:PID.2:ORC.1:ORC.3
above string pattern I would like to transform into below XML format
<filters>
<element group="MSH">
<location path="MSH.1"/>
<location path="MSH.2"/>
<location path="MSH.3"/>
</element>
<element group="PID">
<location path="PID.1"/>
<location path="PID.2"/>
</element>
<element group="ORC">
<location path="ORC.1"/>
<location path-"ORC.3"/>
</elment>
</filters>
Can I have sample XSLT to achieve above scenario
Note : I am making use of XSLT 2.0 ans saxon transformer