Hi All,

I need to create sample where I read a xml file with following attributes.

<TransactionID>0A1R01</TransactionID>
<TravelerID>12345678926203</TravelerID>
<DocumentCode>test</DocumentCode>
<DocumentNumber>PVCH43854</DocumentNumber>
<DocumentStatus>PAID</DocumentStatus>

 If the DocumentNumber contains value' PVCH' I need to update the Document
code with that value using an xslt. In this case do I need to pass the
entire input file or just the documentNumber value as a property to the
xslt transformation. My logs are not getting printed for some reason. What
am I doing wrong here? Appreciate any help on this.


*<?xml version="1.0" encoding="UTF-8"?>*
*<definitions xmlns="http://ws.apache.org/ns/synapse
<http://ws.apache.org/ns/synapse>">*
*<localEntry key="xslt-key-req"
src="file:repository/samples/resources/update.xslt"/>*
*<proxy name="FileProxy" transports="vfs" startOnLoad="true"
trace="disable">*
*  <parameter name="transport.vfs.ActionAfterProcess">MOVE</parameter>*
*<parameter name="transport.PollInterval">15</parameter>*
*<parameter
name="transport.vfs.MoveAfterProcess">file:///Users/himasha/Desktop/original</parameter>*
*<parameter
name="transport.vfs.FileURI">file:///Users/himasha/Desktop/in</parameter>*
*<parameter
name="transport.vfs.MoveAfterFailure">file:///Users/himasha/Desktop/failure</parameter>*
*<parameter name="transport.vfs.FileNamePattern">.*.xml</parameter>*
*<parameter name="transport.vfs.ContentType">application/xml</parameter>*
*<parameter name="transport.vfs.ActionAfterFailure">MOVE</parameter>*

*<target>*
*<inSequence>*
*<property name="OUT_ONLY" value="true"/>*
*<log level="full"/>*

*<xslt key="xslt-key-req"/>*
*<send/>*
*</inSequence>*
*</target>*

*</proxy>*

*</definitions>*

Thanks & Regards,

Himasha Guruge
*Software Engineer*
WS*O2* *Inc.*
Mobile: +94 777459299
[email protected]
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to