In theory, I have this XML file (and be gentle, I'm not experienced with XML or XSLT).
As you can see, there are a few elements that have no data. What I'd like to do is clean up this XML with an XSLT, by getting rid of any elements that have no attributes or values.
Therefore the outputted xml would be:
Ideally, the <start/> element and <end></end> element would be ripped out. And because the <date>.. element would subsequently have no child nodes or data, this would go to.
I've had one example given to me (below) but this not only removes all the blank elements, but also the attributes of the elements that do have values.
If this make's sense, how do I remove all empty elements ('simple' and 'complex', I guess) that have no values whatsoever?
p.s - sorry about the lacking in points - it's all I have available!