Re: Embed XHTML code using PHP's XSLT processor
| From: | Björn Bartels | Date: | Tue, 31 Jan 2006 22:34:31 +0000 |
| Subject: | Re: Embed XHTML code using PHP's XSLT processor | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-229586@lists.php.net to get a copy of this message | ||
Moin, moin...
>Why doesn't 'xsl:element' indent the xml data according to the ident
>switch
>("yes"/"no") then? I expected that the complete resulting XHTML
>(generated
>by the XSLT processor) is either indented or it's completely not
>indented.
>Unfortunately this is not the case for the imported XHTML from the XML
>file.
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...
cheers,
bb
Björn Bartels
-Development/IT-Services-
----------------------------------------------
dbusiness.de gmbh
digital business & printing gmbh
Greifswalder Str. 152
D-10409 Berlin
Fon: [0.30] 4.21.19.95
Fax: [0.30] 4.21.19.74
www.dbusiness.de
info@dbusiness.de
ftp://dbusiness.dyndns.org