I have a function which converts the Result.XML file into Result.html

xmlXForm.Load "C:\PDetails.xsl"
So at the end it creates a detailed descriptin .html file but as this is a plain HTML file, there is nothing short of formating, like font, color. I think this is because it is not creating the .css file.

I would like to create the .css file through DP for the above .html file which should be same as the .css file which gets created while we export the result.xml to result.html through QTP UI.

Can anybody help me how to create .css file for the above html file?