Re: [PHP] Embed XHTML code using PHP's XSLT processor

2006-02-02 Thread Markus Fuchs
Björn Bartels wrote: Moin, moin... Moin. :-) I'm only 99% sure but I think in this line... xsl:apply-templates select=node() ...node() returns CDATA which drops those unnessasary whitespaces and cr/lf's... Okay, we're almost there, I guess. ;-) I still need your help, though. If I

Re: [PHP] Embed XHTML code using PHP's XSLT processor

2006-01-31 Thread Markus Fuchs
Thanks for your response, Björn. Björn Bartels wrote: Hi , this happens because a xml-parser (your browser,...) has to remove all spaces, etc.which are not nessesary. Why doesn't 'xsl:element' indent the xml data according to the ident switch (yes/no) then? I expected that the complete

[PHP] Embed XHTML code using PHP's XSLT processor

2006-01-30 Thread Markus Fuchs
This'll be a rather long post because of the code snippets, so please bear with me. I'm trying to embed XHTML code from a XML file and I'm wondering why PHP's XSLT doesn't indent it correctly. So, this stylesheet: ?xml version=1.0 encoding=iso-8859-1 ? xsl:stylesheet version=1.0