tXSLT: how to use it for doing on-the-fly transformation

One Star

tXSLT: how to use it for doing on-the-fly transformation

Hi
I want to perform on-the-fly transformation from an XML to another XML using XSLT. I want to use tXSLT but I noticed that it needs a disk-file (input) and will write a disk-file (output).
Due to this limitation of tXSLT, I am forced to write the input file to disk and then use tXSLT to perform the transformation. I also now forced to use a tWaitforFile to keep listening for the files which tXSLT is producing ? Due to this my processing has to now depend on File System (which I don't want)?
Does TALEND has component which can do on the XSLT transformation WITHOUT the need to write to disk ?
Thanks
Zguptn
Employee

Re: tXSLT: how to use it for doing on-the-fly transformation

Hi,
XSLT transformation require an XML well formed and verified. For that we need the XML document on the disk before the transformation.
Try to use the link OnSubJobOk before calling the tXSLT component.
You don't need to use a tWaitForFile, just write your expected xml file before transformation and then call the tXSLT with a OnSubJobOk.
Best regards;
One Star

Re: tXSLT: how to use it for doing on-the-fly transformation

In theory an xsl transformation can works with streams. It's a common use case to chain xsl transformations.
There is a feature request more general about this : http://www.talendforge.org/bugs/view.php?id=8622
Employee

Re: tXSLT: how to use it for doing on-the-fly transformation

Hi,
You're right; it a common use case but it was not current behavior available in our version 3.1.x.
As you mentioned into your post we have involved some capabilities to allow this behavior. Could you test it from our version 3.2.0; your feeback would be appreciated.
Thanks a lot.
One Star

Re: tXSLT: how to use it for doing on-the-fly transformation

Hi cantoine
My main objective is to eliminate the need to use a file system with tXSLT . In a production system, I now need to have a file system explicitly for this job. due to this limitation of tXSLT, we have now a dependency on external file system.
Can't we have tXSLT which can just take Object and return Object on-the-fly (like tMAP or tMOMInput). What are the other ways we can transform an XML similar to tXSLT?
I greatly appreciate your help and replies.
Thanks
Zguptn
One Star

Re: tXSLT: how to use it for doing on-the-fly transformation

Hello,
If you have some java knowledge, u can easily do this using tJava.
Here is a pointer : http://onjava.com/onjava/excerpt/java_xslt_ch5/index.html
I could help you more if I weren't so sick theses days Smiley Tongue.
Regards