私は以下のようなxmlを持っています:
<?xml version="1.0" encoding="utf-8"?><Master>
<Account ID="38058226">
<Property ID="66591454">
<Profile ID="111234">\Acct_38058226\Prop_66591454\Prof_111234.xml</Profile>
</Property>
</Account>
<Account ID="38058226">
<Property ID="66591454">
<Profile ID="22222222222">\Acct_38058226\Prop_66591454\Prof_22222222222.xml</Profile>
</Property>
</Account>
<Account ID="38058226">
<Property ID="66591455">
<Profile ID="000000">\Acct_38058226\Prop_66591454\Prof_000000.xml</Profile>
</Property>
</Account>
<Account ID="38058227">
<Property ID="66591454">
<Profile ID="000000">\Acct_38058226\Prop_66591454\Prof_000000.xml</Profile>
</Property>
</Account>
</Master>
私が探している出力は次のとおりです。
<Master>
<Account ID="38058226">
<Property ID="66591454">
<Profile ID="111234">\Acct_38058226\Prop_66591454\Prof_111234.xml</Profile>
<Profile ID="22222222222">\Acct_38058226\Prop_66591454\Prof_22222222222.xml</Profile>
</Property>
<Property ID="66591455">
<Profile ID="000000">\Acct_38058226\Prop_66591454\Prof_000000.xml</Profile>
</Property>
</Account>
<Account ID="38058227">
<Property ID="66591454">
<Profile ID="000000">\Acct_38058226\Prop_66591454\Prof_000000.xml</Profile>
</Property>
</Account>
</Master>
XSLT1.0を使用しています。xmlは毎晩拡張し続けます。私はxml/xsltを初めて使用します。私はそれを研究するために私の手で何時間も費やしましたが、配達は非常に近く、したがって助けを求めています。私が得たヒントは、Muenchian Groupingを使用して、キーを形成し、グループ化する必要があるかもしれないということです。私はまだ学習中であり、自分でロジックを作成することはまだできません。前もって感謝します!!