MSH.1:MSH.2:MSH.3:PID.1:PID.2:ORC.1:ORC.3
上記の文字列パターンを以下の XML 形式に変換したい
<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>
上記のシナリオを実現するためのサンプル XSLT を用意できますか
注: XSLT 2.0 ans saxon トランスフォーマーを使用しています