xsl-list
[Top] [All Lists]

Re: [xsl] Using xsl:output in browsers, was: Re [xsl] XHTML html validation

2007-02-19 15:38:52
Manfred Staudinger wrote:
On 19/02/07, Abel Braaksma <abel(_dot_)online(_at_)xs4all(_dot_)nl> wrote:
<xsl:output method="html" indent="yes" />
IE6: dom
FF: dom (type HTMLDocument)
Just a short remark: if you specify indent="yes" then IE does _not_ eliminate
all whitespace. This only occurs with indent="no".

I believe this is a misunderstanding: whitespace elimination is something that happens when the source is read in, not on serializing. Maybe this is a bug, but I never had any trouble or noticed any difference with this on or off. For serialization (i.e., reusing and/or stringizing the DOM representation of the result tree), the indent=yes has no effect whatsoever (just tested with some XSLT files, I did not see a difference at all, neither with FF).

But maybe I am mistaken and there are situations where this is a difference. Can you point me to some example?

-- Abel



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>