[EMAIL PROTECTED] wrote:
> have you tried using   (no-break space) character reference?
Yes, but only for <script src="foo"></script> to not break down to not
to <script src="foo" /> which causes problems in some browsers.
What I want to do simply preserve the whitespace (formatting) of the
xhtml that my xsl generates. My nicely formatted/nested div and tabels
get output to one line with *most* all my whitespace formatting
stripped. Its purely a cosmetic thing but its nice to be able to view
the source of a page and see the xhtml structure right away, instead
of it all being on one big ugly line.
Any other suggestions?
have you tried <xsl:output indent="yes" ...
http://www.w3schools.com/xsl/el_output.asp
You might want to try this with one simple XSLT first and then
see what happens if many XSLTs are being applied after each other
HTH
Michi
Thanks
-Justin
*Doug Chestnut <[EMAIL PROTECTED]>*
08/22/2005 01:28 PM
Please respond to
[email protected]
To
[email protected]
cc
Subject
Re: Preserving whitespace in lenya transformations
have you tried using   (no-break space) character reference?
--Doug
[EMAIL PROTECTED] wrote:
>
> This is purley a cosmetic thing but to be more specific, it seems like
> <xsl:preserve-space elements="*"/> isn't working as one would
expect. It
> strips out all the xhtml for my result and just outputs character data,
> its quite strange. So I was wondering if there was something anyone
knew
> of in lenya or cocoon to tell the xslt processor to do this implicitly.
>
> -Justin
>
>
>
> [EMAIL PROTECTED]
>
> 08/18/2005 05:30 PM
> Please respond to
> [email protected]
>
>
>
> To
> [email protected]
> cc
>
> Subject
> Preserving whitespace in lenya transformations
>
>
>
>
>
>
>
>
>
> Does anyone know how I can control how the whitespace is treated during
> transformations in Lenya? I want to be able to preserve the whitespace
> so I can have nicely formatted xhtml output to the browser. Looks like
> the default to to strip all whitespace.
>
> -Justin
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Michael Wechner
Wyona - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
[EMAIL PROTECTED] [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]