0
ここではXSL変換を非常に新しくしています。私は、このxmlファイルがある場合:XSLTを使用してXMLで定義されていないレベルの重複エントリを削除します。
<root>
<node id="a">
<section id="a_1">
<item id="0">
<attributes>
<color>Red</color>
</attributes>
</item>
</section>
<section id="a_2">
<item id="0">
<attributes>
<color>Red</color>
</attributes>
</item>
</section>
</node>
<node id="b">
<section id="b_1">
<user id="b_1a">
<attribute>
<name>John</name>
</attribute>
</user>
<user id="b_1b">
<attribute></attribute>
</user>
<user id="b_1a">
<attribute>
<name>John</name>
</attribute>
</user>
</section>
</node>
</root>
を、私は、出力は次のようになりたい:
<root>
<node id="a">
<section id="a_1">
<item id="0">
<attributes>
<color>Red</color>
</attributes>
</item>
</section>
<section id="a_2">
<item id="0">
<attributes>
<color>Red</color>
</attributes>
</item>
</section>
</node>
<node id="b">
<section id="b_1">
<user id="b_1a">
<attribute>
<name>John</name>
</attribute>
</user>
<user id="b_1b">
<attribute></attribute>
</user>
</section>
</node>
</root>
そして、問題がある限り、私はレベルが行くことができるか深いかわからないですが、それは同じレベルにあり、重複があるので、削除します。 これは可能ですか?私は一日中これを修正しようとしており、手がかりを得ていません。 ご協力いただければ幸いです。
歓声、 ジョン
ありがとうございました!それは今働く – John