If you already have the xsl files, dtd and xml files, and want to put these together with php, then you need find some php functions that create output to use the dtd as well. Do a Google and check out the result. However, if there is not any link to the dtd, then you will face parsing problem.