camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vanshul.Chawla <>
Subject Camel headers not visible in xslt when blueprint deployed to Fuse
Date Tue, 05 May 2015 08:52:58 GMT
I have a blueprint.xml deployed to fuse.

Section of that blueprint is:

<setHeader headerName="ResponseCode">
                     <setHeader headerName="ResponseDesc">
                     <setHeader headerName="Test">
                     <log message="Body is ${body}  Param are ${header.ResponseCode} and
                     <log message="Again Body is ${body}  Param are ${header.ResponseCode}
and ${header.ResponseDesc}"/>
                     <to uri="xslt://xslt/Experian.xsl?saxon=true" />

I have a xslt which is like this

<xsl:transform version="2.0"
       xmlns:xsl="" xmlns:xs=""
       xmlns:mf="" exclude-result-prefixes="xs mf">
       <xsl:template match="//Identifier">
              <xsl:param name="ResponseCode"/>
              <xsl:param name="ResponseDesc"/>
              <xsl:param name="Test"/>
                     <xsl:copy-of select="@*"/>
                     <xsl:attribute name="ResponseSystem">
                           <xsl:value-of select="'Experian'" />
                     <xsl:attribute name="ExperianResponseStatus">
                           <xsl:value-of select="$ResponseCode" />
                     <xsl:attribute name="ExperianResponseDescription">
                           <xsl:value-of select="$ResponseDesc" />
                     <xsl:attribute name="ExperianResponseDescription22">
                           <xsl:value-of select="$Test" />
                     <xsl:attribute name="SystematicResponseTime">
                           <xsl:value-of select="format-dateTime(current-dateTime(),'[Y0001]-[M01]-[D01]-[h01]:[m01]:[s01].[f000001]')"

Problem is I don't get the param in the xslt although when I print header in log outside I
can see values.

Does Fuse supports this?

Thanks and Regards,

Vanshul Chawla

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message