我一直在努力解決這個問題了幾個小時....幫助XSLT 1.0組,而無需使用鑰匙
首先,我必須使用XSLT 1.0,我不能使用xsl:關鍵。我不得不進行排序和分組下面的XML數據
<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet href="class2.xsl" type="text/xsl" ?>
<université>
<étudiant>
<nom>Réjean Tremblay</nom>
<cours sigle="INF8430" note="89" />
<cours sigle="INF1030" note="69" />
<cours sigle="INF1230" note="75" />
</étudiant>
<étudiant>
<nom>Martin Lambert</nom>
<cours sigle="INF8430" note="75" />
<cours sigle="INF1030" note="72" />
<cours sigle="INF1230" note="73" />
</étudiant>
<étudiant>
<nom>Luc Alain</nom>
<cours sigle="INF9430" note="39" />
<cours sigle="INF1030" note="89" />
<cours sigle="INF1230" note="79" />
</étudiant>
<étudiant>
<nom>Olive Saint-Amant</nom>
<cours sigle="INF8430" note="91" />
<cours sigle="INF1230" note="99" />
</étudiant>
</université>
預期的結果應該是
「*我無法使用xsl:key。*「爲什麼? –
我無法使用關鍵元素將課程分組http://www.w3schools.com/xsl/el_key.asp – user1082748
您是否使用XT處理器?否則這個限制是荒謬的。 –