Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.8.2
-
None
-
Unknown
Description
With the new StAX converters you may convert to a StAXSource which is not supported by the XSLT transformer, and you get this exception
Caused by: org.apache.xml.dtm.DTMException: Not supported: javax.xml.transform.stax.StAXSource@14d556e
at org.apache.xml.dtm.ref.DTMManagerDefault.getDTM(DTMManagerDefault.java:477)
at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:699)
at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1273)
at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1251)
at org.apache.camel.builder.xml.XsltBuilder.process(XsltBuilder.java:107)
We should add option on XSLT component to explicit enable StAX if the end user wants it.