<html>
<head>
<title>My Headline</title>
<meta name="targetUrl" value="xyz.html?sym=abc"/>
<meta name="summary" value="A & B"/>
</head>
<body>
abc abc, pqr, xyz, rst tsd, prrrr, qqqqqqq, oooooo, opop opop, rtrttrt rtrtrtrt
</body>
</html>
The body tag should be changed to csv so the output should be like this :
abc abc, pqr, xyz, rst tsd, prrrr, qqqqqqq, oooooo, opop opop, rtrttrt rtrtrtrt
if i try @Jim's solution
parsing exception occurs for meta tags as they have special characters
Here's an XSLT1 solution
Note that since your input contains a newline before and after the data, it will be written to the output as well, resulting in a blank first and lasst line.