2
我有一個簡單的形式的XML文件,我想顯示的內容xslt(1.0)在按類別分組的列表中,書籍按類別字段分組。這是一個想法嗎?感謝xslt分組列表
我不是很熟悉XSLT ...,我沒有找到有關的東西清除此所以任何幫助是值得歡迎的
<collection>
<book>
<title>Sushi for dummies</title>
<author>Judi Strada</author>
<category>Cooking</category>
<year>2001</year>
<isbn>95641022</isbn>
</book>
<book>
<title>Sixties Design</title>
<author>Philippe Garner</author>
<category>Design</category>
<year>2007</year>
<isbn>64781365</isbn>
</book>
<book>
<title>Final Jeopardy</title>
<author>Stephen Baker</author>
<category>Computer Science</category>
<year>2011</year>
<isbn>8316363546</isbn>
</book>
<book>
<title>Spoon river anthology</title>
<author>Edgar Lee Masters</author>
<category>Poetry</category>
<year>1973</year>
<isbn>21565648362</isbn>
</book>
<book>
<title>The dark is rising</title>
<author>Susan Cooper</author>
<category>Philosophy</category>
<year>1973</year>
<isbn>47884564151</isbn>
</book>
<book>
<title>The graphic alphabet</title>
<author>David Pelletier</author>
<category>Design</category>
<year>1996</year>
<isbn>1322456655</isbn>
</book>
<book>
<title>Pattern Recognition and Machine Learning</title>
<author>Christopher M. Bishop</author>
<category>Computer Science</category>
<year>2006</year>
<isbn>45456531073</isbn>
</book>
</collection>
也被稱爲[Muenchian分組](http://www.jenitennison.com/xslt/grouping/muenchian.xml) – Saxoier