I\'m editing an XML file in Vim, and then I want to transform it a plain-text file with xsltproc, which by default outputs to a stdout (something like : !xsltproc TXTRULE.XSL %)
To expand on lucapette's answer, you could create a map like this:
:map ,x :tabnewread !xsltproc TXTRULE.XSL #
# expands to the previously opened buffer, which is the file you were editing, while % would expand to the new buffer opened by :tabnew.
has to be used instead of |, because otherwise, the :map command would end at the |.