>>In my application, my custom problemListener is never called, and
>>XalanTransformer::getLastError() returns:
>> Invalid character (Unicode: 0x4)
>>
>>So I'm back to wondering how to get the line number of the error.
>
>This does the trick for us (and you cannot get much shorter code):
>
> catch (XSLException& e) {
> std::cerr << e.defaultFormat().transcode().begin()) << std::endl;
> }
I don't understand what you mean. XalanTransformer::transform() is not
throwing an exception, so how can adding a catch do anything?
Don