1
比方說一個有這個基本的XML文檔:xslt模板匹配具有特定屬性的子元素值?
<result name="response" numFound="73" start="0">
<doc>
<str name="contentType">Content1</str>
<str name="content">Some content here</str>
</doc>
<doc>
<str name="contentType">Content2</str>
<str name="content">Some other content</str>
</doc>
</result>
我打算使用不同的模板爲每個內容類型。什麼是模板匹配參數?當只有contentType字段是特定值時,我無法弄清楚如何匹配doc的其他子級。
您是否忘記了第4或第5行的''標籤? – JLRishe 2013-03-18 16:17:38