tags:

views:

61

answers:

2
A: 

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
so there is no solution for my problem? or shall i use another xsl file?
rokdd
A: 

here is my solution: http://stackoverflow.com/questions/396586/xsl-that-returns-the-xml-unchanged thanks everybody for their help!

rokdd
@rokdd: Yes, that is an answer to "XSL that returns the XML unchenged". But that was not your question. You explicitly wrote **"I only want to edit the XML"**. So, where is the "edit" part? Also, you provide a stylesheet without template (without declaring your desired "edition") and that is why you get result provided by built-in templates.
Alejandro