Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-4579

Add option on XSLT to allow StAX

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.8.2
    • 2.8.3, 2.9.0
    • camel-core
    • 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.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: