XSLT - get value of all nodes with the same name



I have the next XML:



<OPTION>
<PRICES>
<PRICE>
<PRICE_DATE>25 Nov 2014</PRICE_DATE>
</PRICE>
<PRICE>
<PRICE_DATE>26 Nov 2014</PRICE_DATE>
</PRICE>
</PRICES>
</OPTION>


In my XSLT I need the value of all PRICE_DATE (25 Nov 2014 and 26 Nov 2014 ).



<xsl:value-of select="PRICES//PRICE_DATE"/>


but the returning value is only the 25 Nov 2014 .


How to get the values of the all nodes with the same name?


No comments:

Post a Comment