比較我是一個有點新的XSLT,所以我的基本問題道歉。XSL:節點值與另一個節點
我正在嘗試創建一個XSL樣式表,它將從XML(下面)第三個<cell>
--即CODE1,CODE2 - 從每個節點中取出並放入下拉框中。我還想比較每個節點並採取任何重複出現的內容,以便它只顯示CODE1和CODE2的一個實例,而不是CODE1,CODE1和CODE2。
XML:
<dvm>
<description>This is a description</description>
<columns>
<column name="lang"/>
<column name="text"/>
<column name="code" qualifier="true" order="1"/>
<column name="comm" qualifier="true" order="2"/>
<column name="subj"/>
<column name="copy"/>
<column name="flag"/>
</columns>
<rows>
<row>
<cell>English</cell>
<cell></cell>
<cell>CODE1</cell>
<cell>Fixed</cell>
<cell>Title1</cell>
<cell/><cell/>
<cell/><cell/>
</row>
<row>
<cell>English</cell>
<cell></cell>
<cell>CODE1</cell>
<cell>Wired</cell>
<cell>Title2</cell>
<cell/><cell/>
<cell/><cell/>
</row>
<row>
<cell>English</cell>
<cell></cell>
<cell>CODE2</cell>
<cell>Fixed</cell>
<cell>Title3</cell>
<cell/><cell/>
<cell/><cell/>
</row>
</dvm>