I am using ant's xslt-task plus a suitable XSLT script to remove certain nodes from XML documents that we are generating. To get some feedback during processing I added a few message-statements to the script. These work all fine, except that ALL emitted messages have a ": Warning!" prefix. Since the messages are informative only I want/need to get rid of these Warning-prefix to prevent alerting the user who might otherwise think that something is not OK. How can I avoid that prefix? The XSLT message function seems to have no other option than 'terminate="yes"|"no". Can one somehow control that message prefix? And if so: how?
I am using the default xslt task built into ant, i.e. my target reads:
<xslt in="${source.xml}" out="${output.xml}" style="${stylesheet.xsl}" processor="trax">
</xslt>
with the misc. properties set to point to the appropriate locations. I found that command in some other stack-overflow append.
My ant version reads:
C:\Users\mmo>ant -version
Apache Ant(TM) version 1.8.2 compiled on December 20 2010