On Feb 26, 2008, at 11:49 AM, Tobia Conforto wrote:
But if I use the compiling "xsltc" transformer, I get an opaque
"Exception in CIncludeTransformer" (see below) that hides the real
cause of the exception.
<snip/>
Caused by: javax.xml.transform.TransformerException: Exception in
CIncludeTransformer
at
org
.apache
.xalan
.xsltc.trax.TransformerImpl.postErrorToListener(TransformerImpl.java:
693)
at
org
.apache
.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:639)
...
Problem is that XSLTC does not preserve the cause. See
http://svn.apache.org/viewvc/xalan/java/trunk/src/org/apache/xalan/xsltc/trax/TransformerImpl.java?annotate=486494
and scroll to line 693.
As far as I can see you have three options:
1. Ask Xalan team to patch XSLTC to preserve cause exception;
2. Patch it yourself (which is not that hard - just use
TransformerException(message, exception) constructor);
3. Use other XSLT processor which does not exhibit this behavior.
Vadim