Sunday, 7 December 2014

extra subset of xml input in xslt



I need an xslt file to transform the input xml. It needs to output the employee's name when their age is over 40. Each record needs a comma at the end, and the last record needs a semi-colon.


Input



<employees>
<employee>
<name>Bill Jordan</name>
<age>40</age>
</employee>
<employee>
<name>Larry Bird</name>
<age>42</age>
</employee>
<employee>
<name>Joe King</name>
<age>25</age>
</employee>
<employee>
<name>John Smith</name>
<age>45</age>
</employee>
<employee>
<name>Kathy Bush</name>
<age>31</age>
</employee>
</employees>


Output


Bill Jordan,


Larry Bird,


John Smith;


No comments:

Post a Comment