The get_xml_file_from_web service downloads an example xml from myExperiment. The content of that file is then saved to a temporary file by create_and_populate_xml_file. The path to the temporary file is passed to the inFileURL port of Transform_XML.
The get_xslt_file_from_web service downloads an example xslt file from myExperiment. The content of that file is then saved to a temporary file by create_and_populate_xslt_file. The path to the temporary file is passed to the xslFileURL port of Transform_XML.
The create_temporary_file beanshell creates a temporary file to which the transformed XML is to be written. The file path to this file is passed to the outFileURL port of Transform_XML.
The Transform_XML service transforms the XML using the specified XSLT and sends the resultant XML document to its outputStr port and so to the workflow's out port. The transformed XML document is also written to the file whose path is passed to the outFileURL port.
To check the content of the output file, its file path is passed to the Read_Text_File service. Once the Transform_XML service has finished, the Read_Text_File service reads the output file and echoes its content to the contents_of_output_file port of the workflow.
net.sourceforge.taverna.scuflworkers.xml.XSLTWorker
File f = File.createTempFile("taverna", ".xml");
BufferedWriter writer = new BufferedWriter(new FileWriter(f));
writer.write(content);
writer.close();
filePath = f.getCanonicalPath();
content
filePath
File f = File.createTempFile("taverna", ".xslt");
BufferedWriter writer = new BufferedWriter(new FileWriter(f));
writer.write(content);
writer.close();
filePath = f.getCanonicalPath();
content
filePath
http://www.myexperiment.org/blobs/137/download/test.xml?version=1
org.embl.ebi.escience.scuflworkers.java.WebPageFetcher
http://www.myexperiment.org/blobs/138/download/test.xslt?version=1
org.embl.ebi.escience.scuflworkers.java.WebPageFetcher
File f = File.createTempFile("taverna", ".out");
filePath = f.getCanonicalPath();
filePath
net.sourceforge.taverna.scuflworkers.io.TextFileReader
Completed
Transform_XML
Read_Text_File
Scheduled
Running