Announcement Announcement Module
No announcement yet.
xslt transformer Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • xslt transformer

    Hi guys,
    I have a problem using transformer.
    I have to apply a xslt transformation. I got it with stylesheet version 1.0 in the following way:

    <int-xml:xslt-transformer input-channel="input-channel"
    output-channel="output-channel" xsl-resource="classpath:/my.xsl" />

    but if I have a stylesheet 2.0 I receive an error because spring integration behind the scene uses xalan that doesn't support xpath2.
    To avoid that I tried to use a different transformer, saxon that is xslt 2.0 compliant, but I received the following error.
    <int-xml:xslt-transformer input-channel="input-channel"
    output-channel="output-channel" xsl-resource="classpath:/my2-0.xsl" result-transformer="net.sf.saxon.TransformerFactoryImpl" />

    Exception in thread "main" org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'org.springframework.integration.xml.transformer.X sltPayloadTransformer#0': Could not resolve matching constructor (hint: specify index/type/name arguments for simple parameters to avoid type ambiguities)
    at torResolver.autowireConstructor(ConstructorResolve
    at AutowireCapableBeanFactory.autowireConstructor(Abs
    at AutowireCapableBeanFactory.createBeanInstance(Abst
    at AutowireCapableBeanFactory.doCreateBean(AbstractAu
    at AutowireCapableBeanFactory.createBean(AbstractAuto
    at BeanFactory$1.getObject( 94)
    at ingletonBeanRegistry.getSingleton(DefaultSingleton
    at BeanFactory.doGetBean( )

    Any help will be appreciate.

    Thank you.

  • #2
    Hi Mariateresa,

    Could you look at our XQuery adapters at:

    Since XQuery is a super-set of XPath 2.0 maybe it can solve your issue. If not, please open Jira at:

    and we will try to provide XSLT 2.0 support as soon as possible.





    • #3
      Hi Gunnar,
      thanks for your answer.

      I believe spring xquery adapter doesn't fit my needs because I should provide to the transformer an xq file but I have just my xsl file.
      Do you have any suggestion?


      • #4
        BTW, I opened a jira