camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: XSLT component produces different result after logging a CXF PAYLOAD request
Date Thu, 31 Jul 2014 08:08:17 GMT

Sounds a bit like this

On Thu, Jul 31, 2014 at 10:06 AM, Udo Einspanier
<> wrote:
> Hi,
> I have this in my Camel config file:
>         <route>
>             <from uri="cxf:bean:cswSoapEndpoint?dataFormat=PAYLOAD"/>
>             <to uri="log:input"/>
>             <to uri="xslt:productRequest1.xsl"/>
> Sending a SOAP request to the CXF endpoint with PAYLOAD dataFormat and applying the XSLT
work as expected with this configuration. However, when I remove the log component, the result
of my XSLT file is different. In particular this template creates an empty element, while
it correctly writes the namespace URI when the request is logged before it goes to the XSLT
>         <xsl:template name="parseNsUri">
>                 <xsl:param name="prefix"/>
>                 <xsl:element name="uapi:nsUri">
>                         <xsl:value-of select="namespace::*[name() = $prefix]"/>
>                 </xsl:element>
>         </xsl:template>
> Is the XML parsed with different namespace aware settings when it is logged before going
to the XSLT component? What can I do to get a namespace aware transformation, without logging
the request?
> I'm using Camel 2.13.0 with Tomcat 6 / Java7.
> Regards,
> Udo

Claus Ibsen
Red Hat, Inc.
Twitter: davsclaus
Author of Camel in Action:

View raw message