Warning both of these will obviously overwrite the xml's with the transformation as asked in the question.
With xargs you want to do something like
find . -name foo.xml -print0 | xargs -I {} -0 xsltproc -o {} transform.xsl {}
Or with -exec
find . -name foo.xml -exec xsltproc -o {} transform.xsl {} \;