我需要從itunes library.xml文件中提取音軌ID和位置。 我發現了一些XSLT解決方案,但它們都是基於XSLT 2.0版的。itunes上的XSLT庫
我僅限於XSLT版本1.0。
任何人都可以幫助如何做到這一點。
輸出應該是:
98,location---
100,location 2
的幫助 馬蒂亞斯
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>Tracks</key>
<dict>
<key>98</key>
<dict>
<key>Track ID</key>
<integer>98</integer>
<key>Name</key>
<string>xxxxxx</string>
<key>Location</key>
<string>location---</string>
</dict>
<key>100</key>
<dict>
<key>Track ID</key>
<integer>100</integer>
<key>Name</key>
<string>name2</string>
<key>Location</key>
<string>location 2</string>
</dict>
</dict>
</dict>
</plist>
您是否嘗試編寫任何代碼?您是否嘗試將XSLT2.0轉換爲1.0並查看發生了什麼 - 許多XSLT2.0命令向後兼容? – 2013-11-04 23:06:31