My latex pipeline:
<pipeline xmlns="http://www.w3.org/2002/02/xml-pipeline" xml:base="http://example.org/"> <param name="target" select="'result'"/> <processdef name="filter.p" definition="org.mathdoc.tools.FilterUnicode"/> <processdef name="validate.p" definition="org.example.xml.XmlSchema"/> <processdef name="transform.p" definition="org.example.xml.XSLT"/> <process id="m1" type="validate.p"> <input name="document" label="mydoc.xml"/> <input name="schema" label="mathpaper.xsd"/> <output name="result" label="valid"/> <error name="invalid" label="#invalidDocument"/> </process> <process id="m2" type="transform.p"> <input name="stylesheet" label="paper2tex.xsl"/> <input name="document" label="valid"/> <output name="result" label="texresult"/> <param name="chunk">0</param> </process> <process id="m3" type="filter.p"> <input name="document" label="texresult"/> <output name="result" label="filtered"/> </process> <process id="m4" type="transform.p"> <input name="stylesheet" label="finalsyntax.xsl"/> <input name="document" label="filtered"/> <output name="result" label="mydoc.tex"/> </process> <process id="b1" type="transform.p"> <input name="stylesheet" label="paper2bib.xsl"/> <input name="document" label="valid"/> <output name="result" label="bib-texresult"/> <param name="chunk">0</param> </process> <process id="b2" type="filter.p"> <input name="document" label="bib-texresult"/> <output name="result" label="mydoc.bib"/> </process> <document name="invalidDocument"> <error> Your document is not valid! </error> </document> </pipeline>