Hi Justin,
Try replacing <html> with <html xml:space="preserve"> in page2xhtml.xsl. This seemed to do the trick for me in the default pub (only live version of the page though).

HTH
--Doug

[EMAIL PROTECTED] wrote:

 > have you tried using &#160; (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?
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 &#160; (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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to