[esb-java-dev] ESB XSLT
Paul Fremantle
paul at wso2.com
Thu Mar 5 08:13:13 PST 2009
Basher
Can I suggest you start by taking a look at Sample 8.
http://wso2.org/project/esb/java/2.0.1/docs/wso2esb-2.0.1-docs/samples/message_mediation_samples.html#Sample8
The key configuration is to store your XSLT in the Registry, and then
use the transform mediator to point at it.
Let us know if that gets you going otherwise I can give a more detailed
instructions.
Regards
Paul
Kattubadi Basher Ahamed wrote:
>
> HI,
> I am evaluating WS02 ESB , I have good exp in IBM ESB and ALSB/OSB.
> I am trying XSLT transformation in WS02 ESB , I need to apply xslt
> before sending to the end point. Can you send me details, where i need
> to put xslt and how need to configure in proxy
> in xslt just i am changing <UnitNumberXXX> to <UnitNumbe>
>
>
> Request to ESB :
>
> <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:med="MedService">
> <soapenv:Header/>
> <soapenv:Body>
> <med:getMedData>
> <med:UnitNumberXXX>118138</med:UnitNumberXXX>
> </med:getMedData>
> </soapenv:Body>
> </soapenv:Envelope>
>
> XSLT
>
> Transform.xsl
>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version="1.0" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:med="MedService" >
> <xsl:output method="xml" indent="yes"/>
> <xsl:template match="/">
> <med:getMedData>
> <med:UnitNumber>
> <xsl:value-of select="//med:UnitNumberXXX"/>
> </med:UnitNumber>
> </med:getMedData>
> </xsl:template>
> </xsl:stylesheet>
>
> Thanks and Regards
> ...................................
> Basher Kattubadi
> Desk:801-442-5515
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Esb-java-dev mailing list
> Esb-java-dev at wso2.org
> https://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev
--
Paul Fremantle
CTO and Co-Founder, WSO2
OASIS WS-RX TC Co-chair
VP, Apache Synapse
Office: +44 844 484 8143
Cell: +44 798 447 4618
blog: http://pzf.fremantle.org
paul at wso2.com
"Oxygenating the Web Service Platform", www.wso2.com
More information about the Esb-java-dev
mailing list