To create a PDF one must write the XSLT in FOP. Do a search on google for FOP and I am sure you will find a nice tutorial. I believe there was one on xml.com. Once you have a FOP style XSLT (and an XML document), you can change where the transform results go to see or save the PDF (see Changing where the output goes for more information)