Vladimir --
Messages are generated via the warning() method of the current
ErrorListener in the transformer. Create your own
javax.xml.transform.ErrorListener and tell the transformer about it with
Transformer.setErrorListener(). You may wish to have a look at
org.apache.xml.utils.DefaultErrorHandler (which implements
ErrorListener) and either extend it or use it as the basis for your own
ErrorListener.
HTH,
Gary
Vladimir Blagojevic wrote:
>
> Hello,
>
> During transormations(using commad line invoke), is there a way to suppress
> line number in stylesheet where xsl message is generated i.e I would like
> to change this output:
>
> Line 657; Column 16; Writing ch07s02.html for section
> file:////home/vlad/dev/jboss/manual/manual/src/docs/docbook/html/chunk-common.xsl;
> Line 657; Column 16; Writing ch07s03.html for section
>
> to only actual xsl message:
>
> Writing ch07s02.html for section
> Writing ch07s03.html for section
>
> Using xalan2.1.
>
> Cheers,
> Vladimir