This way the PDF file gets send, not its base64 encoding . PDF files contain typically binary data. In XSLT only http://www.w3.org/TR/REC-xml/ s can be processed. This is the reason why you cannot have the PDF file itself in XLST, only its base64 encoding.