0
我試圖梳理和XML元素XML元素進行排序: How to sort some XML elements according to their dependencies, by using XSLT?,但在我的情況我有以下XML:如何基於使用XSL,類似這樣的事情後他們的前輩
<root>
<element name="a" predecessor="x">
<children>
<element name="b" predecessor="c"/>
<element name="c" predecessor="a"/>
<element name="d" predecessor="b"/>
</children>
</element>
</root>
預期的輸出將是:
<root>
<element name="a" predecessor="x">
<children>
<element name="c" predecessor="a"/>
<element name="b" predecessor="c"/>
<element name="d" predecessor="b"/>
</children>
</element>
</root>
你能幫我實現嗎?