User login

WSO2 ESB 1.7 - XSLT Mediator Source

Forums :

I want to perform a XSLT on the text in the 'question' element (see attachment).
How do I specify the Source field when defining a XSLT Mediator?

AttachmentSize
soapbody.xml689 bytes

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Hi Roger, It should be as

Hi Roger,

It should be as follows;

for more information please refer to the configuration language guide;

http://wso2.org/project/esb/java/1.7/docs/ESB_Configuration_Language.html#xslt

Thanks,
Ruwan Linton

Solution is missing in post

Solution is missing in post

Sorry Roger, This forum put

Sorry Roger,

This forum put it off from my post.

<xslt key="KEY" source="//ns0:GetBSNInfo/ns0:question" xmlns:ns0="http://bsn.curaservices.cura.healthcare.unit4agresso.com"/>

Ruwan Linton

Ruwan, Thanks for your

Ruwan,

Thanks for your reply.
The XSLT is now up and running but now the result is not what I expected.
I've attached the original request, the transformed request, my current config and the used stylesheet from the registry.
In the transformed request the "GetBSNInfo" appears twice instead of once.

Kind regards,

Roger van Kanten
Unit 4 Agresso

AttachmentSize
Stylesheet from integrated registry2.45 KB
currentconfig.xml1.24 KB
request_tr.xml1.08 KB
request.xml954 bytes

Roger, I had a quick look at

Roger,

I had a quick look at the XSLT and the messages, everything seems to be fine, but I was just wondering why do you need to specify the source. If you do not specify the source then the SOAP payload will be fed to the XSLT transformer and the result will be set back to the message.

I think the best option is to go with the default source [i.e. without specifying a source] and changing the XSLT accordingly.

Let me know your views on this and whether it fixes this issue.

Thanks,
Ruwan Linton

Ruwan, I'm strugling to

Ruwan,

I'm strugling to implement your suggestion.
I've very litte experience in XSLT and I can't get my stylesheet to parse the contents of the 'question' element.

Thanks,

Roger van Kanten
Unit 4 Agresso

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.