You wrote:
Question: PHP returns always the data as text or html but not in XML.. what i am doing wrong? I only want to edit the XML with xslt and save back to XML (file).
Answer: your stylesheet is copying every text node in document order. Then, in serialization fase, all result text nodes are merged into a single one. This behavior is from built-in templates. Your error is not to provide any template describing your desired result.
Alejandro
2010-06-16 22:31:56