[EMAIL PROTECTED] wrote:
Yes , you are right. XSL creates a result tree which can be dumped to
Xml or Html or txt.
Apart from creating output file, our style sheet throws few
messages using <xsl:message> construct.
So we need to know the way to capture these messages using Xalan
Interface.
You need to install a custom ProblemListener using
XalanTransformer::setProblemListener(). Take a look at the abstract base
class in src/xalanc/XSLT/ProblemListener. Text from the xsl:message
instruction comes through the ProblemListener interface with the
classification eMESSAGE.
You will want to make sure you pass through everything you don't report in
your own code to the default ProblemListener that's already installed in
the XalanTransformer instance. Otherwise, error messages will not appear
on std::err.
Dave