Get attribute value by using XSLT function



I am looking for XSLT function to get attribute value from XML file. The format of xml file is below,



<field name="test" index="yes" phrase="no" stop-words="yes" term-list="no" proximity="yes"/>
<field name="form" index="yes" phrase="no" stop-words="yes" term-list="no" proximity="yes"/>
<field name="stat" index="yes" phrase="no" stop-words="yes" term-list="no" proximity="yes"/>


How I should I retrieve id and title value?


Thanks.


No comments:

Post a Comment