The commande below applies the XSLT transformation to all the file from the current directory matching the given pattern find . -name '*.xml' -exec saxon-xslt -o '{}' '{}' ../../fixXCN-9-2.5.xsl \;