Transform XML with XSLT and query with XQuery.
XSLT and XQuery processor
saxon$ saxon -xsl:stylesheet.xsl -s:input.xml -o:output.xml$ saxon -xsl:convert.xsl -s:data.xml > output.html$ saxon -q:query.xq -s:input.xml$ saxon -s:document.xml -xsl:extract.xsl -o:result.xml$ saxon -xsl:template.xsl -s:file1.xml && saxon -xsl:template.xsl -s:file2.xml