xslt 2.0 xpath expression
---------------
if (//book/price < 10) then
'Very Cheap'
else if (//book/price < 20) then
'Affordable'
else if (//book/price < 30) then
'Reasonably Priced'
else
'Expensive'
if (//book/price < 10) then 'Very Cheap' else if (//book/price < 20) then 'Affordable' else if (//book/price < 30) then 'Reasonably Priced' else 'Expensive'
-----------------------
if (//book/price < 20) then
'Affordable'
else
'Expensive'
-----------------------------
----------------
<?xml version="1.0" encoding="UTF-8"?>
<bookstore>
<book>
<title>The Great Gatsby</title>
<price>15.99</price>
</book>
<book>
<title>To Kill a Mockingbird</title>
<price>12.50</price>
</book>
<book>
<title>War and Peace</title>
<price>24.99</price>
</book>
</bookstore>