Claus,

thanks for that - i'd seen it and hoped it would do what i wanted but if
errored in use.

If i do this:

      <setHeader headerName="CamelXsltResourceUri">
              <xpath
resultType="java.lang.String">concat('META-INF/xsl/',local-name(/*[local-name(.)='Envelope']/*[local-name(.)='Body']/*),'.xsl')</xpath>
      </setHeader>
      <to uri="xslt:${headers.CamelXsltResourceUri}"/>

When i run the route (using 'camel:run' with maven) i get a
BeanDefinitionStoreException:

Caused by: org.springframework.beans.factory.BeanDefinitionStoreException:
Unexpected exception parsing XML document from file
[c:\dev\Workspaces\camel-rxservices\target\classes\META-INF\spring\camel-context.xml];
nested exception is 
java.lang.NullPointerException
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:412)

i.e. its erroring as it's trying to replace the header ref - is there a way
to do this in XML config or does it need to be dne via Java DSL?

Thanks

Martin




--
View this message in context: 
http://camel.465427.n5.nabble.com/Dynamic-XSL-source-with-2-8-6-tp5727501p5727513.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to