Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to apply an XSLT transformation in OSB

824202Jan 5 2011 — edited Jan 6 2011
Hello all ,
I tried to made a simple example - that apply a simple XSLT transformation in OSB .
I followed the http://blog.jayway.com/2010/05/07/xslt-transformations-in-oracle-service-bus/ example but still is not working in my project .

If I apply the imported xslt over the xml in testing window is working fine .
But the action to replace the content of the xml with the new one is not working.

Here is the xslt
<xsl:template match="/">
<ns0:donateToFund>
<arg0>
<xsl:value-of select="/Report/CustomerName"/>
</arg0>
<arg1>
<xsl:value-of select="/Report/CustomerNumber"/>
</arg1>
<arg2>
<xsl:value-of select="/Report/ReportName"/>
</arg2>
</ns0:donateToFund>
</xsl:template>

and here is a xml sample
- <Report>
<ReportName>Customer Report</ReportName>
<CustomerName>XXX</CustomerName>
<CustomerNumber>3423</CustomerNumber>
<GeneratedDate>2010-11-25 08:15:24.695</GeneratedDate>
- <Rowset>
- <Row>
<Quantity>100154</Quantity>
<CustomerPartNo>ee</CustomerPartNo>
<eSiliconPartNo>ee</eSiliconPartNo>
<Sector>ee</Sector>
<Location>eee</Location>
</Row>
- <Row>
...


In my action I put /Report as XPath ; body as variable and XSL fro transformation .

Can anyone help to fix this ?

Many thanks in advance,
Stefan
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 3 2011
Added on Jan 5 2011
5 comments
2,554 views