I want to register a function that uses XSLT to transform an XMLDirFmt artifact created by my QIIME 2 wrapper for ASAP (a pipeline that trims, aligns, and processes output) into various formats: HTML, XML, or even Excel. Since I want to allow users to create their own XSLT stylesheets, I don't want to strictly validate the data. Ideally, it makes sense to output the data into a specified folder for user viewing purposes. I considered using a QIIME 2 visualizer, but since XSLT can produce a wide variety of outputs, I can't ensure they will all convert nicely to HTML. Can I write the function to return no artifact but instead output arbitrary file types to a regular directory?
This formatOutput functionality for ASAP is important especially for users transitioning to QIIME 2, and I don't want to require them to install the formatOutput script separately, to extract the XML artifact, then run the formatOutput script on the extracted data. The XML output is otherwise parsable by users using their own code to generate their own analyses for their Amplicon sequencing data.