列出的數據我有XML
這樣的代碼我如何寫XSL代碼與條件
<hotels>
<hotel>
<name>hotel A</name>
<rating>5</rating>
</hotel>
<hotel>
<name>hotel B</name>
<rating>4</rating>
</hotel>
<hotel>
<name>hotel C</name>
<rating>2</rating>
</hotel>
<hotel>
....
</hotel>
</hotels>
用我的老式question,我怎麼能在文件的.xsl寫XSL
代碼與條件rating
列表數據> = 4;
請張貼自足的問題,包括XML輸入,一個完整的樣式和預期輸出。請參閱:http://stackoverflow.com/help/mcve –
http://stackoverflow.com/help/someone-answers –