Kasun,

FYI. I am tailing my code again. " my scenario is -> INPUT DIRECTORY(
XML ) ---> XSLT ----> OUTPUT DIRECTORY ( XML/ HTML ). 

My code:

<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"; name="FileProxy"
transports="vfs" startOnLoad="true" trace="disable">
    <localEntry xmlns="http://ws.apache.org/ns/synapse"; key="xslt"
src="file:resources/trans.xslt"/>
        <target>
        <inSequence>
            <log level="full"/>
                         <xslt key="xslt-key-req" /> 
                        <property
xmlns:ns2="http://org.apache.synapse/xsd";
name="transport.vfs.ReplyFileName" expression="fn:concat('Outputfile',
'.txt')" scope="transport"/>
             <property name="OUT_ONLY" value="true"/>
              <send>
                  <endpoint name="FileEpr">
                     <address uri="vfs:file:d:\\test\out"/>
                                        
                 </endpoint>
            </send>
        </inSequence>
    </target>
    <parameter name="transport.vfs.ActionAfterProcess">MOVE</parameter>
    <parameter name="transport.PollInterval">15</parameter>
    <parameter
name="transport.vfs.MoveAfterProcess">file:d:\\test\afterprocess</parame
ter>
    <parameter
name="transport.vfs.FileURI">file:d:\\test\input</parameter>
    <parameter
name="transport.vfs.MoveAfterFailure">file:d:\\test\afterfailure</parame
ter>
    <parameter name="transport.vfs.FileNamePattern">.*.xml</parameter>
    <parameter name="transport.vfs.ContentType">text/plain</parameter>
    <parameter name="transport.vfs.ActionAfterFailure">MOVE</parameter>
</proxy>

Since just to admit if there is any mistake in my logic. Else how we can
fix this xslt issue ?.

Regards
Guru

-----Original Message-----
From: carbon-dev-boun...@wso2.org [mailto:carbon-dev-boun...@wso2.org]
On Behalf Of carbon-dev-requ...@wso2.org
Sent: Tuesday, December 27, 2011 10:41 AM
To: carbon-dev@wso2.org
Subject: Carbon-dev Digest, Vol 47, Issue 516

Send Carbon-dev mailing list submissions to
        carbon-dev@wso2.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
or, via email, send a message with subject or body 'help' to
        carbon-dev-requ...@wso2.org

You can reach the person managing the list at
        carbon-dev-ow...@wso2.org

When replying, please edit your Subject line so it is more specific than
"Re: Contents of Carbon-dev digest..."


Today's Topics:

   1. Re: XSLT implementation - error . Working on other
      platformsCarbon-dev Digest, Vol 47, Issue 514 (KasunG Gajasinghe)


----------------------------------------------------------------------

Message: 1
Date: Tue, 27 Dec 2011 14:04:35 +0530
From: KasunG Gajasinghe <kas...@wso2.com>
To: carbon-dev@wso2.org
Subject: Re: [Carbon-dev] XSLT implementation - error . Working on
        other platformsCarbon-dev Digest, Vol 47, Issue 514
Message-ID:
        
<cajysros2jodte6znc6m64h_+0jyyxzcpgbah_sopnzx7ih1...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Based on the carbon log, it seems that some code converts '<' character
to escaped format ( &lt; ) but not the '>' character. Either, both
should be escaped or no character should be. IMO, no character should be
escaped in this scenario, but I'm not sure about that. Hiranya could
fill in on that.
But double check your code.

Regards,
--KasunG

On Tue, Dec 27, 2011 at 12:26 PM, <gnanaguru.sattanat...@wipro.com>
wrote:

> Hi Hiranya,
>
> Yes. Its working on other tools like eclipse. Even I tried the same 
> with some other esb. Its successful. But I don't know how it fails. 
> Also I want to mention one thing.
>
> The input xml file which I am sending for transformation has the 
> following contents, But the wso2 console shows the same input xml 
> contents with some soap tags. ( contents below )
>
> Original input file:
>
> <catalog>
>    <cd>
>        <title>Empire Burlesque</title>
>        <artist>Bob Dylan</artist>
>        <country>USA</country>
>        <company>Columbia</company>
>        <price>10.90</price>
>        <year>1985</year>
>    </cd>
>    <cd>
>        <title>Hide your heart</title>
>        <artist>Bonnie Tyler</artist>
>        <country>UK</country>
>        <company>CBS Records</company>
>        <price>9.90</price>
>        <year>1988</year>
>    </cd>
> </catalog>
>
> Content shown in wso2 console log:
>
> [2011-12-27 12:41:23,593]  INFO - LogMediator To: , WSAction:
> urn:mediate, SOAPAction: urn:mediate, MessageID:
> urn:uuid:62C967DEE0369CF8231324969883596, Direction: reques t, 
> Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";><soapenv:Bod
> y>
> <text xmlns="http://ws.apache
> .org/commons/ns/payload">&lt;catalog>&#xd;
>    &lt;cd>&#xd;
>        &lt;title>Empire Burlesque&lt;/title>&#xd;
>        &lt;artist>Bob Dylan&lt;/artist>&#xd;
>        &lt;country>USA&lt;/country>&#xd;
>        &lt;company>Columbia&lt;/company>&#xd;
>        &lt;price>10.90&lt;/price>&#xd;
>        &lt;year>1985&lt;/year>&#xd;
>    &lt;/cd>&#xd;
>    &lt;cd>&#xd;
>        &lt;title>Hide your heart&lt;/title>&#xd;
>        &lt;artist>Bonnie Tyler&lt;/artist>&#xd;
>        &lt;country>UK&lt;/country>&#xd;
>        &lt;company>CBS Records&lt;/company>&#xd;
>        &lt;price>9.90&lt;/price>&#xd;
>        &lt;year>1988&lt;/year>&#xd;
>    &lt;/cd>&#xd;
> &lt;/catalog></text></soapenv:Body></soapenv:Envelope>
> [2011-12-27 12:41:23,609] ERROR - XSLTMediator Unable to perform XSLT 
> transformation using : Value {name ='null', keyValue ='xslt-key-req'} 
> against source XPath : s11:Bod y/child::*[position()=1] | 
> s12:Body/child::*[position()=1]
> org.apache.axiom.om.OMException:
> com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '&'
> (code 38) in prolog; expected '<'
>
> Please help out
>
> Regards
> Guru
>
> -----Original Message-----
> From: carbon-dev-boun...@wso2.org [mailto:carbon-dev-boun...@wso2.org]
> On Behalf Of carbon-dev-requ...@wso2.org
> Sent: Tuesday, December 27, 2011 8:48 AM
> To: carbon-dev@wso2.org
> Subject: Carbon-dev Digest, Vol 47, Issue 514
>
> Send Carbon-dev mailing list submissions to
>        carbon-dev@wso2.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
> or, via email, send a message with subject or body 'help' to
>        carbon-dev-requ...@wso2.org
>
> You can reach the person managing the list at
>        carbon-dev-ow...@wso2.org
>
> When replying, please edit your Subject line so it is more specific 
> than
> "Re: Contents of Carbon-dev digest..."
>
>
> Today's Topics:
>
>   1. Re: XSLT IMPLEMENTATION, Carbon-dev Digest, Vol 47,       Issue
> 513
>      (gnanaguru.sattanat...@wipro.com)
>   2. Re: XSLT IMPLEMENTATION, Carbon-dev Digest, Vol 47, Issue 513
>      (Hiranya Jayathilaka)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 27 Dec 2011 11:57:52 +0530
> From: <gnanaguru.sattanat...@wipro.com>
> To: <carbon-dev@wso2.org>
> Subject: Re: [Carbon-dev] XSLT IMPLEMENTATION, Carbon-dev Digest, Vol
>        47,     Issue 513
> Message-ID:
>
> <fe8084dfcf6170439fa8ba3f696db34d06301...@blr-ec-mbx04.wipro.com>
> Content-Type: text/plain;       charset="us-ascii"
>
> Hi Kasun,
>
> Thanks for your reply. I tried deleting the escape characters. Still 
> the problem persists. Let me explain how I deployed it.
>
> As I posted the file proxy code, I deployed it in "
> /CARBONHOME/repository/deployment/server/default/proxy services "
>
> And I created a file ( input.xml ) with the xml file to transform and 
> dropped into input directory. But I am getting the same error log. ( I

> have specified xslt file resource as a local entry and specified a key

> name for it. Which is used in the file proxy code )
>
>
> Regards
> Guru
>
> -----Original Message-----
> From: carbon-dev-boun...@wso2.org [mailto:carbon-dev-boun...@wso2.org]
> On Behalf Of carbon-dev-requ...@wso2.org
> Sent: Tuesday, December 27, 2011 8:05 AM
> To: carbon-dev@wso2.org
> Subject: Carbon-dev Digest, Vol 47, Issue 513
>
> Send Carbon-dev mailing list submissions to
>        carbon-dev@wso2.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
> or, via email, send a message with subject or body 'help' to
>        carbon-dev-requ...@wso2.org
>
> You can reach the person managing the list at
>        carbon-dev-ow...@wso2.org
>
> When replying, please edit your Subject line so it is more specific 
> than
> "Re: Contents of Carbon-dev digest..."
>
>
> Today's Topics:
>
>   1. Re: XSLT Transformation fails (KasunG Gajasinghe)
>   2. [Bamboo-Build] WSO2 Carbon 3.2.0 > WSO2 Carbon - Platform
>      3.2.0 > #65 has FAILED (Bamboo)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 27 Dec 2011 10:56:30 +0530
> From: KasunG Gajasinghe <kas...@wso2.com>
> To: carbon-dev@wso2.org
> Subject: Re: [Carbon-dev] XSLT Transformation fails
> Message-ID:
>
> <CAJYSROuUWx9S7=2sx-ob6ruah_9vv3wngmyj2b7m18pjnsi...@mail.gmail.com>
> Content-Type: text/plain; charset="windows-1252"
>
> Hi,
>
> This has probably occurred because of not escaping a returned xml
value.
> I'm not aware about your implementation, but check whether you have 
> tried to use a xml text read from a file without escaping the 
> characters.
>
> If that's not the reasom, following might provide a solution for you.
>
> http://osdir.com/ml/java.wso2.esb.user/2008-10/msg00084.html
>
> Regards,
> --KasunG
>
> On Mon, Dec 26, 2011 at 8:17 PM, <gnanaguru.sattanat...@wipro.com>
> wrote:
>
> > Hi****
> >
> > ** **
> >
> > I have created a file proxy to attain the following scenario. ? To 
> > pick a xml file from the local file directory, Send it to a xslt 
> > transformer and forward the transformed xml in another local
> > directory.****
> >
> > ** **
> >
> > The proxy service code below: ****
> >
> > ** **
> >
> > <?xml version="1.0" encoding="UTF-8"?>****
> >
> > <proxy xmlns="http://ws.apache.org/ns/synapse"; name="FileProxy"
> > transports="vfs" startOnLoad="true" trace="disable">****
> >
> >     <localEntry xmlns="http://ws.apache.org/ns/synapse"; key="xslt"
> > src="file:resources/trans.xslt"/>****
> >
> >                 <target>****
> >
> >         <inSequence>****
> >
> >             <log level="full"/>****
> >
> >                                                 <xslt
> key="xslt-key-req"
> > /> ****
> >
> >                                                 <property
xmlns:ns2="
> > http://org.apache.synapse/xsd"; name="transport.vfs.ReplyFileName"
> > expression="fn:concat('Outputfile', '.txt')" scope="transport"/>****
> >
> >              <property name="OUT_ONLY" value="true"/>****
> >
> >               <send>****
> >
> >                   <endpoint name="FileEpr">****
> >
> >                      <address uri="vfs:file:d:\\test\out"/>****
> >
> >
> >                                ****
> >
> >                  </endpoint>****
> >
> >             </send>****
> >
> >         </inSequence>****
> >
> >     </target>****
> >
> >     <parameter
> > name="transport.vfs.ActionAfterProcess">MOVE</parameter>***
> > *
> >
> >     <parameter name="transport.PollInterval">15</parameter>****
> >
> >     <parameter
> > name="transport.vfs.MoveAfterProcess">file:d:\\test\afterprocess</pa
> > ra
> > meter>
> > ****
> >
> >     <parameter
> > name="transport.vfs.FileURI">file:d:\\test\input</parameter>
> > ****
> >
> >     <parameter
> > name="transport.vfs.MoveAfterFailure">file:d:\\test\afterfailure</pa
> > ra
> > meter>
> > ****
> >
> >     <parameter
> > name="transport.vfs.FileNamePattern">.*.xml</parameter>****
> >
> >     <parameter
> > name="transport.vfs.ContentType">text/plain</parameter>****
> >
> >     <parameter
> > name="transport.vfs.ActionAfterFailure">MOVE</parameter>***
> > *
> >
> > </proxy>****
> >
> > ** **
> >
> > INPUT XML File kept:****
> >
> > ** **
> >
> > <?xml version="1.0"?>****
> >
> > <?xml-stylesheet type="text/xsl"?>****
> >
> > <hello-world>****
> >
> > <greeter>An XSLT Programmer</greeter>****
> >
> > <greeting>Hello, World!</greeting>****
> >
> > </hello-world>****
> >
> > ** **
> >
> > XSLT File:****
> >
> > ** **
> >
> > <?xml version="1.0"?>****
> >
> > <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> > version="1.0">****
> >
> > <xsl:template
> >
match="/hello-world"><HTML><HEAD><TITLE></TITLE></HEAD><BODY><H1><xsl:
> > value-of
> > select="greeting"/>****
> >
> > </H1><xsl:apply-templates select="greeter"/></BODY></HTML>****
> >
> > </xsl:template><xsl:template match="greeter"><DIV>from <I>****
> >
> > <xsl:value-of select="."/></I></DIV></xsl:template>****
> >
> > </xsl:stylesheet>****
> >
> > ** **
> >
> > Error after I drop the file in input directory:****
> >
> > ** **
> >
> > [2011-12-26 16:08:53,531] ERROR - XSLTMediator Unable to perform 
> > XSLT transformation using : Value {name ='null', keyValue ='****
> >
> > y/child::*[position()=1] | s12:Body/child::*[position()=1]****
> >
> > org.apache.axiom.om.OMException:
> > com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character
'&'
> > (code 38) in prolog;****
> >
> > at [row,col {unknown-source}]: [1,39]****
> >
> >         at
> > org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.ja
> > va
> > :296)
> > ****
> >
> >         at
> > org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement(OM
> > Do
> > cumentImpl.java:109)
> > ****
> >
> >         at
> > org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(St
> > AX
> > OMBuilder.java:570)
> > ****
> >
> >         at
> > org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(St
> > AX
> > OMBuilder.java:566)
> > ****
> >
> >         at
> > org.apache.synapse.util.jaxp.StreamResultBuilder.getNode(StreamResul
> > tB
> > uilder.java:87)
> > ****
> >
> >         at
> > org.apache.synapse.mediators.transform.XSLTMediator.performXSLT(XSLT
> > Me
> > diator.java:295)
> > ****
> >
> >         at
> > org.apache.synapse.mediators.transform.XSLTMediator.mediate(XSLTMedi
> > at
> > or.java:191)
> > ****
> >
> >         at
> > org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractLi
> > st
> > Mediator.java:60)
> > ****
> >
> >         at
> > org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceM
> > ed
> > iator.java:114)
> > ****
> >
> >         at
> > org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(Pr
> > ox
> > yServiceMessageReceiver.java:154)
> > ****
> >
> >         at
> > org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181)
> > ****
> >
> >         at
> > org.apache.axis2.transport.base.AbstractTransportListener.handleInco
> > mi
> > ngMessage(AbstractTransportListener.java:328
> > ****
> >
> >         at
> > org.apache.synapse.transport.vfs.VFSTransportListener.processFile(VF
> > ST
> > ransportListener.java:551)
> > ****
> >
> >         at
> > org.apache.synapse.transport.vfs.VFSTransportListener.scanFileOrDire
> > ct
> > ory(VFSTransportListener.java:301)
> > ****
> >
> >         at
> > org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransp
> > or
> > tListener.java:157)
> > ****
> >
> >         at
> > org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransp
> > or
> > tListener.java:106)
> > ****
> >
> >         at
> > org.apache.axis2.transport.base.AbstractPollingTransportListener$1$1
> > .r
> > un(AbstractPollingTransportListener.java:67)
> > ****
> >
> >         at
> > org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(Nativ
> > eW
> > orkerPool.java:173)
> > ****
> >
> >         at
> > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExe
> > cu
> > tor.java:886)
> > ****
> >
> >         at
> >
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.
> > java:908)
> > ****
> >
> >         at java.lang.Thread.run(Thread.java:619)****
> >
> > Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected 
> > character '&' (code 38) in prolog; expected '<'****
> >
> > at [row,col {unknown-source}]: [1,39]****
> >
> >         at
> > com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java
> > :6
> > 48)*
> > ***
> >
> >         at
> > com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.j
> > av
> > a:2047)
> > ****
> >
> >         at
> > com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)*
> > **
> > *
> >
> >         at
> > org.apache.axiom.util.stax.wrapper.XMLStreamReaderWrapper.next(XMLSt
> > re
> > amReaderWrapper.java:225)
> > ****
> >
> >         at
> > org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuil
> > de
> > r.java:681)
> > ****
> >
> >         at
> > org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.ja
> > va
> > :214)
> > ****
> >
> >         ... 20 more****
> >
> > ** **
> >
> > Please help out in this. ****
> >
> > ** **
> >
> >
> > Regards****
> >
> > Guru****
> >
> > * Please do not print this email unless it is absolutely necessary.
> > *****
> >
> > The information contained in this electronic message and any 
> > attachments to this message are intended for the exclusive use of 
> > the
> > addressee(s) and may contain proprietary, confidential or privileged

> > information. If you are not the intended recipient, you should not 
> > disseminate, distribute or copy this e-mail. Please notify the 
> > sender immediately and destroy all copies of this message and any
> attachments.
> >
> > WARNING: Computer viruses can be transmitted via email. The 
> > recipient should check this email and any attachments for the 
> > presence of
> viruses.
> > The company accepts no liability for any damage caused by any virus 
> > transmitted by this email.
> >
> > www.wipro.com
> >
> > _______________________________________________
> > Carbon-dev mailing list
> > Carbon-dev@wso2.org
> > http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
> >
> >
>
>
> --
> *Kasun Gajasinghe*
> Software Engineer; WSO2 Inc.; http://wso2.com
>
> ,
> *email: **kasung AT spamfree wso2.com** cell: **+94 (77) 678-0813*
> *blog: **http://blog.kasunbg.org* <http://blog.kasunbg.org>
>
> *
> twitter: **http://twitter.com/kasunbg* <http://twitter.com/kasunbg>
>
> *
> *
> -------------- next part -------------- An HTML attachment was 
> scrubbed...
> URL:
> <http://mail.wso2.org/pipermail/carbon-dev/attachments/20111227/506844
> fb
> /attachment-0001.html>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 26 Dec 2011 13:47:31 -0800 (PST)
> From: Bamboo <cbuil...@wso2.org>
> To: carbon-dev@wso2.org
> Subject: [Carbon-dev] [Bamboo-Build] WSO2 Carbon 3.2.0 > WSO2 Carbon -
>        Platform 3.2.0 > #65 has FAILED
> Message-ID:
>
> <1677252607.275.1324936051115.javamail.bam...@db6237242.aspadmin.net>
> Content-Type: text/plain; charset="utf-8"
>
>
> ----------------------------------------------------------------------
> -
> WSO2 Carbon 3.2.0 > WSO2 Carbon - Platform 3.2.0 > #65 failed.
> ----------------------------------------------------------------------
> - This build was triggered at the scheduled time of 12:00 PM No failed

> tests found, a possible compilation error.
>
> http://builder4.us1.wso2.org:8888/bamboo/browse/WSO2CARBON320-WSO2CARB
> ON
> PLATFORM320-65/
>
>
> --------------
> Failing Jobs
> --------------
>  - WSO2 Carbon Nightly Build Process (Default Stage): No tests found.
>
>
>
> --
> This message is automatically generated by Atlassian Bamboo
> -------------- next part -------------- An HTML attachment was 
> scrubbed...
> URL:
> <http://mail.wso2.org/pipermail/carbon-dev/attachments/20111226/e667ff
> ad
> /attachment.html>
>
> ------------------------------
>
> _______________________________________________
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
> End of Carbon-dev Digest, Vol 47, Issue 513
> *******************************************
>
> Please do not print this email unless it is absolutely necessary.
>
> The information contained in this electronic message and any 
> attachments to this message are intended for the exclusive use of the 
> addressee(s) and may contain proprietary, confidential or privileged 
> information. If you are not the intended recipient, you should not 
> disseminate, distribute or copy this e-mail. Please notify the sender 
> immediately and destroy all copies of this message and any
attachments.
>
> WARNING: Computer viruses can be transmitted via email. The recipient 
> should check this email and any attachments for the presence of
viruses.
> The company accepts no liability for any damage caused by any virus 
> transmitted by this email.
>
> www.wipro.com
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 27 Dec 2011 12:12:29 +0530
> From: Hiranya Jayathilaka <hira...@wso2.com>
> To: carbon-dev@wso2.org
> Subject: Re: [Carbon-dev] XSLT IMPLEMENTATION, Carbon-dev Digest, Vol
>        47, Issue 513
> Message-ID:
>
> <capmlfe8gsssjuhuyvjct+ek1e_d8dx80t8tsfgy1jprbmgt...@mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Does your XSLT work on the given input file on other environments - 
> Say Eclipse?
>
> Thanks,
> Hiranya
>
> On Tue, Dec 27, 2011 at 11:57 AM, <gnanaguru.sattanat...@wipro.com>
> wrote:
>
> > Hi Kasun,
> >
> > Thanks for your reply. I tried deleting the escape characters. Still

> > the problem persists. Let me explain how I deployed it.
> >
> > As I posted the file proxy code, I deployed it in "
> > /CARBONHOME/repository/deployment/server/default/proxy services "
> >
> > And I created a file ( input.xml ) with the xml file to transform 
> > and dropped into input directory. But I am getting the same error 
> > log. ( I
>
> > have specified xslt file resource as a local entry and specified a 
> > key
>
> > name for it. Which is used in the file proxy code )
> >
> >
> > Regards
> > Guru
> >
> > -----Original Message-----
> > From: carbon-dev-boun...@wso2.org 
> > [mailto:carbon-dev-boun...@wso2.org]
> > On Behalf Of carbon-dev-requ...@wso2.org
> > Sent: Tuesday, December 27, 2011 8:05 AM
> > To: carbon-dev@wso2.org
> > Subject: Carbon-dev Digest, Vol 47, Issue 513
> >
> > Send Carbon-dev mailing list submissions to
> >        carbon-dev@wso2.org
> >
> > To subscribe or unsubscribe via the World Wide Web, visit
> >        http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
> > or, via email, send a message with subject or body 'help' to
> >        carbon-dev-requ...@wso2.org
> >
> > You can reach the person managing the list at
> >        carbon-dev-ow...@wso2.org
> >
> > When replying, please edit your Subject line so it is more specific 
> > than
> > "Re: Contents of Carbon-dev digest..."
> >
> >
> > Today's Topics:
> >
> >   1. Re: XSLT Transformation fails (KasunG Gajasinghe)
> >   2. [Bamboo-Build] WSO2 Carbon 3.2.0 > WSO2 Carbon - Platform
> >      3.2.0 > #65 has FAILED (Bamboo)
> >
> >
> > --------------------------------------------------------------------
> > --
> >
> > Message: 1
> > Date: Tue, 27 Dec 2011 10:56:30 +0530
> > From: KasunG Gajasinghe <kas...@wso2.com>
> > To: carbon-dev@wso2.org
> > Subject: Re: [Carbon-dev] XSLT Transformation fails
> > Message-ID:
> >
> > <CAJYSROuUWx9S7=2sx-ob6ruah_9vv3wngmyj2b7m18pjnsi...@mail.gmail.com>
> > Content-Type: text/plain; charset="windows-1252"
> >
> > Hi,
> >
> > This has probably occurred because of not escaping a returned xml
> value.
> > I'm not aware about your implementation, but check whether you have 
> > tried to use a xml text read from a file without escaping the 
> > characters.
> >
> > If that's not the reasom, following might provide a solution for
you.
> >
> > http://osdir.com/ml/java.wso2.esb.user/2008-10/msg00084.html
> >
> > Regards,
> > --KasunG
> >
> > On Mon, Dec 26, 2011 at 8:17 PM, <gnanaguru.sattanat...@wipro.com>
> > wrote:
> >
> > > Hi****
> > >
> > > ** **
> > >
> > > I have created a file proxy to attain the following scenario. ? To

> > > pick a xml file from the local file directory, Send it to a xslt 
> > > transformer and forward the transformed xml in another local
> > > directory.****
> > >
> > > ** **
> > >
> > > The proxy service code below: ****
> > >
> > > ** **
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>****
> > >
> > > <proxy xmlns="http://ws.apache.org/ns/synapse"; name="FileProxy"
> > > transports="vfs" startOnLoad="true" trace="disable">****
> > >
> > >     <localEntry xmlns="http://ws.apache.org/ns/synapse"; key="xslt"
> > > src="file:resources/trans.xslt"/>****
> > >
> > >                 <target>****
> > >
> > >         <inSequence>****
> > >
> > >             <log level="full"/>****
> > >
> > >                                                 <xslt
> > key="xslt-key-req"
> > > /> ****
> > >
> > >                                                 <property
> xmlns:ns2="
> > > http://org.apache.synapse/xsd"; name="transport.vfs.ReplyFileName"
> > > expression="fn:concat('Outputfile', '.txt')" 
> > > scope="transport"/>****
> > >
> > >              <property name="OUT_ONLY" value="true"/>****
> > >
> > >               <send>****
> > >
> > >                   <endpoint name="FileEpr">****
> > >
> > >                      <address uri="vfs:file:d:\\test\out"/>****
> > >
> > >
> > >                                ****
> > >
> > >                  </endpoint>****
> > >
> > >             </send>****
> > >
> > >         </inSequence>****
> > >
> > >     </target>****
> > >
> > >     <parameter
> > > name="transport.vfs.ActionAfterProcess">MOVE</parameter>***
> > > *
> > >
> > >     <parameter name="transport.PollInterval">15</parameter>****
> > >
> > >     <parameter
> > > name="transport.vfs.MoveAfterProcess">file:d:\\test\afterprocess</
> > > pa
> > > ra
> > > meter>
> > > ****
> > >
> > >     <parameter
> > > name="transport.vfs.FileURI">file:d:\\test\input</parameter>
> > > ****
> > >
> > >     <parameter
> > > name="transport.vfs.MoveAfterFailure">file:d:\\test\afterfailure</
> > > pa
> > > ra
> > > meter>
> > > ****
> > >
> > >     <parameter
> > > name="transport.vfs.FileNamePattern">.*.xml</parameter>****
> > >
> > >     <parameter
> > > name="transport.vfs.ContentType">text/plain</parameter>****
> > >
> > >     <parameter
> > > name="transport.vfs.ActionAfterFailure">MOVE</parameter>***
> > > *
> > >
> > > </proxy>****
> > >
> > > ** **
> > >
> > > INPUT XML File kept:****
> > >
> > > ** **
> > >
> > > <?xml version="1.0"?>****
> > >
> > > <?xml-stylesheet type="text/xsl"?>****
> > >
> > > <hello-world>****
> > >
> > > <greeter>An XSLT Programmer</greeter>****
> > >
> > > <greeting>Hello, World!</greeting>****
> > >
> > > </hello-world>****
> > >
> > > ** **
> > >
> > > XSLT File:****
> > >
> > > ** **
> > >
> > > <?xml version="1.0"?>****
> > >
> > > <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> > > version="1.0">****
> > >
> > > <xsl:template
> > >
> match="/hello-world"><HTML><HEAD><TITLE></TITLE></HEAD><BODY><H1><xsl:
> > > value-of
> > > select="greeting"/>****
> > >
> > > </H1><xsl:apply-templates select="greeter"/></BODY></HTML>****
> > >
> > > </xsl:template><xsl:template match="greeter"><DIV>from <I>****
> > >
> > > <xsl:value-of select="."/></I></DIV></xsl:template>****
> > >
> > > </xsl:stylesheet>****
> > >
> > > ** **
> > >
> > > Error after I drop the file in input directory:****
> > >
> > > ** **
> > >
> > > [2011-12-26 16:08:53,531] ERROR - XSLTMediator Unable to perform 
> > > XSLT transformation using : Value {name ='null', keyValue ='****
> > >
> > > y/child::*[position()=1] | s12:Body/child::*[position()=1]****
> > >
> > > org.apache.axiom.om.OMException:
> > > com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character
> '&'
> > > (code 38) in prolog;****
> > >
> > > at [row,col {unknown-source}]: [1,39]****
> > >
> > >         at
> > > org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.
> > > ja
> > > va
> > > :296)
> > > ****
> > >
> > >         at
> > > org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement(
> > > OM
> > > Do
> > > cumentImpl.java:109)
> > > ****
> > >
> > >         at
> > > org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(
> > > St
> > > AX
> > > OMBuilder.java:570)
> > > ****
> > >
> > >         at
> > > org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(
> > > St
> > > AX
> > > OMBuilder.java:566)
> > > ****
> > >
> > >         at
> > > org.apache.synapse.util.jaxp.StreamResultBuilder.getNode(StreamRes
> > > ul
> > > tB
> > > uilder.java:87)
> > > ****
> > >
> > >         at
> > > org.apache.synapse.mediators.transform.XSLTMediator.performXSLT(XS
> > > LT
> > > Me
> > > diator.java:295)
> > > ****
> > >
> > >         at
> > > org.apache.synapse.mediators.transform.XSLTMediator.mediate(XSLTMe
> > > di
> > > at
> > > or.java:191)
> > > ****
> > >
> > >         at
> > > org.apache.synapse.mediators.AbstractListMediator.mediate(Abstract
> > > Li
> > > st
> > > Mediator.java:60)
> > > ****
> > >
> > >         at
> > > org.apache.synapse.mediators.base.SequenceMediator.mediate(Sequenc
> > > eM
> > > ed
> > > iator.java:114)
> > > ****
> > >
> > >         at
> > > org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(
> > > Pr
> > > ox
> > > yServiceMessageReceiver.java:154)
> > > ****
> > >
> > >         at
> > > org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181)
> > > ****
> > >
> > >         at
> > > org.apache.axis2.transport.base.AbstractTransportListener.handleIn
> > > co
> > > mi
> > > ngMessage(AbstractTransportListener.java:328
> > > ****
> > >
> > >         at
> > > org.apache.synapse.transport.vfs.VFSTransportListener.processFile(
> > > VF
> > > ST
> > > ransportListener.java:551)
> > > ****
> > >
> > >         at
> > > org.apache.synapse.transport.vfs.VFSTransportListener.scanFileOrDi
> > > re
> > > ct
> > > ory(VFSTransportListener.java:301)
> > > ****
> > >
> > >         at
> > > org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTran
> > > sp
> > > or
> > > tListener.java:157)
> > > ****
> > >
> > >         at
> > > org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTran
> > > sp
> > > or
> > > tListener.java:106)
> > > ****
> > >
> > >         at
> > > org.apache.axis2.transport.base.AbstractPollingTransportListener$1
> > > $1
> > > .r
> > > un(AbstractPollingTransportListener.java:67)
> > > ****
> > >
> > >         at
> > > org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(Nat
> > > iv
> > > eW
> > > orkerPool.java:173)
> > > ****
> > >
> > >         at
> > > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolE
> > > xe
> > > cu
> > > tor.java:886)
> > > ****
> > >
> > >         at
> > >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.
> > > java:908)
> > > ****
> > >
> > >         at java.lang.Thread.run(Thread.java:619)****
> > >
> > > Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: 
> > > Unexpected character '&' (code 38) in prolog; expected '<'****
> > >
> > > at [row,col {unknown-source}]: [1,39]****
> > >
> > >         at
> > > com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.ja
> > > va
> > > :6
> > > 48)*
> > > ***
> > >
> > >         at
> > > com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader
> > > .j
> > > av
> > > a:2047)
> > > ****
> > >
> > >         at
> > > com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069
> > > )*
> > > **
> > > *
> > >
> > >         at
> > > org.apache.axiom.util.stax.wrapper.XMLStreamReaderWrapper.next(XML
> > > St
> > > re
> > > amReaderWrapper.java:225)
> > > ****
> > >
> > >         at
> > > org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBu
> > > il
> > > de
> > > r.java:681)
> > > ****
> > >
> > >         at
> > > org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.
> > > ja
> > > va
> > > :214)
> > > ****
> > >
> > >         ... 20 more****
> > >
> > > ** **
> > >
> > > Please help out in this. ****
> > >
> > > ** **
> > >
> > >
> > > Regards****
> > >
> > > Guru****
> > >
> > > * Please do not print this email unless it is absolutely
necessary.
> > > *****
> > >
> > > The information contained in this electronic message and any 
> > > attachments to this message are intended for the exclusive use of 
> > > the
> > > addressee(s) and may contain proprietary, confidential or 
> > > privileged
>
> > > information. If you are not the intended recipient, you should not

> > > disseminate, distribute or copy this e-mail. Please notify the 
> > > sender immediately and destroy all copies of this message and any
> > attachments.
> > >
> > > WARNING: Computer viruses can be transmitted via email. The 
> > > recipient should check this email and any attachments for the 
> > > presence of
> > viruses.
> > > The company accepts no liability for any damage caused by any 
> > > virus transmitted by this email.
> > >
> > > www.wipro.com
> > >
> > > _______________________________________________
> > > Carbon-dev mailing list
> > > Carbon-dev@wso2.org
> > > http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
> > >
> > >
> >
> >
> > --
> > *Kasun Gajasinghe*
> > Software Engineer; WSO2 Inc.; http://wso2.com
> >
> > ,
> > *email: **kasung AT spamfree wso2.com** cell: **+94 (77) 678-0813*
> > *blog: **http://blog.kasunbg.org* <http://blog.kasunbg.org>
> >
> > *
> > twitter: **http://twitter.com/kasunbg* <http://twitter.com/kasunbg>
> >
> > *
> > *
> > -------------- next part -------------- An HTML attachment was 
> > scrubbed...
> > URL:
> > <http://mail.wso2.org/pipermail/carbon-dev/attachments/20111227/5068
> > 44
> > fb
> > /attachment-0001.html>
> >
> > ------------------------------
> >
> > Message: 2
> > Date: Mon, 26 Dec 2011 13:47:31 -0800 (PST)
> > From: Bamboo <cbuil...@wso2.org>
> > To: carbon-dev@wso2.org
> > Subject: [Carbon-dev] [Bamboo-Build] WSO2 Carbon 3.2.0 > WSO2 Carbon
-
> >        Platform 3.2.0 > #65 has FAILED
> > Message-ID:
> >
> > <1677252607.275.1324936051115.javamail.bam...@db6237242.aspadmin.net
> > >
> > Content-Type: text/plain; charset="utf-8"
> >
> >
> > --------------------------------------------------------------------
> > --
> > -
> > WSO2 Carbon 3.2.0 > WSO2 Carbon - Platform 3.2.0 > #65 failed.
> > --------------------------------------------------------------------
> > --
> > - This build was triggered at the scheduled time of 12:00 PM No 
> > failed
>
> > tests found, a possible compilation error.
> >
> > http://builder4.us1.wso2.org:8888/bamboo/browse/WSO2CARBON320-WSO2CA
> > RB
> > ON
> > PLATFORM320-65/
> >
> >
> > --------------
> > Failing Jobs
> > --------------
> >  - WSO2 Carbon Nightly Build Process (Default Stage): No tests
found.
> >
> >
> >
> > --
> > This message is automatically generated by Atlassian Bamboo
> > -------------- next part -------------- An HTML attachment was 
> > scrubbed...
> > URL:
> > <http://mail.wso2.org/pipermail/carbon-dev/attachments/20111226/e667
> > ff
> > ad
> > /attachment.html>
> >
> > ------------------------------
> >
> > _______________________________________________
> > Carbon-dev mailing list
> > Carbon-dev@wso2.org
> > http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
> >
> >
> > End of Carbon-dev Digest, Vol 47, Issue 513
> > *******************************************
> >
> > Please do not print this email unless it is absolutely necessary.
> >
> > The information contained in this electronic message and any 
> > attachments to this message are intended for the exclusive use of 
> > the
> > addressee(s) and may contain proprietary, confidential or privileged

> > information. If you are not the intended recipient, you should not 
> > disseminate, distribute or copy this e-mail. Please notify the 
> > sender immediately and destroy all copies of this message and any
> attachments.
> >
> > WARNING: Computer viruses can be transmitted via email. The 
> > recipient should check this email and any attachments for the 
> > presence of
> viruses.
> > The company accepts no liability for any damage caused by any virus 
> > transmitted by this email.
> >
> > www.wipro.com
> > _______________________________________________
> > Carbon-dev mailing list
> > Carbon-dev@wso2.org
> > http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
> >
>
>
>
> --
> Hiranya Jayathilaka
> Associate Technical Lead;
> WSO2 Inc.;  http://wso2.org
> E-mail: hira...@wso2.com;  Mobile: +94 77 633 3491
> Blog: http://techfeast-hiranya.blogspot.com
> -------------- next part -------------- An HTML attachment was 
> scrubbed...
> URL:
> <http://mail.wso2.org/pipermail/carbon-dev/attachments/20111227/751250
> c5
> /attachment.html>
>
> ------------------------------
>
> _______________________________________________
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
> End of Carbon-dev Digest, Vol 47, Issue 514
> *******************************************
>
> Please do not print this email unless it is absolutely necessary.
>
> The information contained in this electronic message and any 
> attachments to this message are intended for the exclusive use of the 
> addressee(s) and may contain proprietary, confidential or privileged 
> information. If you are not the intended recipient, you should not 
> disseminate, distribute or copy this e-mail. Please notify the sender 
> immediately and destroy all copies of this message and any
attachments.
>
> WARNING: Computer viruses can be transmitted via email. The recipient 
> should check this email and any attachments for the presence of
viruses.
> The company accepts no liability for any damage caused by any virus 
> transmitted by this email.
>
> www.wipro.com
> _______________________________________________
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>



--
*Kasun Gajasinghe*
Software Engineer; WSO2 Inc.; http://wso2.com

,
*email: **kasung AT spamfree wso2.com** cell: **+94 (77) 678-0813*
*blog: **http://blog.kasunbg.org* <http://blog.kasunbg.org>

*
twitter: **http://twitter.com/kasunbg* <http://twitter.com/kasunbg>

*
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.wso2.org/pipermail/carbon-dev/attachments/20111227/f06beaf0
/attachment.html>

------------------------------

_______________________________________________
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


End of Carbon-dev Digest, Vol 47, Issue 516
*******************************************

Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email. 

www.wipro.com
_______________________________________________
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to