How to add Xml stylesheet header to a xmlstring?


We want to add a xml stylesheet header to a xml string generated from an IS document using documentToXMLString service.

If we set ‘addHeader’ to ‘true’, xml header “” is getting added. Along with this header, we want stylesheet header also in the xml.

Our xml string should look like:


where is the first level xml tag.