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 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 Transform_XML_service has the default for outputExt set to 'out' so the transformed XML document is also written to the file whose path is the same as that of the inFileURL but with '.out' as the extension.
To check the content of the output file, its file path is calculated by calls of Filter_list_of_strings_extracting_match_to_a_regex and Concatenate_two_strings. The 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.
out
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
net.sourceforge.taverna.scuflworkers.io.TextFileReader
(.*)(.xml)
1
org.embl.ebi.escience.scuflworkers.java.RegularExpressionStringList
.out
org.embl.ebi.escience.scuflworkers.java.StringConcat
Completed
Transform_XML
Read_Text_File
Scheduled
Running