An XML document is never empty, it has at least one element, the root element. That is a well-formedness requirement so you do not even need a schema respectively a validating parser to check that.
I don't see how ant, an exec task or a shell script relates to XSLT, the topic of this forum.
__________________
Martin Honnen
Microsoft MVP (XML, Data Platform Development) 2005/04 - 2013/03
My blog
|