xsl-list
[Top] [All Lists]

Re: [xsl] Understanding why <tag></tag> is the way it is (was Re: [xsl] IE Client side transformation issue)

2007-08-03 11:37:57
On 03/08/07, G. Ken Holman <gkholman(_at_)cranesoftwrights(_dot_)com> wrote:
At 2007-08-03 19:19 +0200, Manfred Staudinger wrote:
On 03/08/07, Abel Braaksma <abel(_dot_)online(_at_)xs4all(_dot_)nl> wrote:
There is a cdata-section-elements on xsl:output, but not a
never-minimize-elements attribute or something similar.
There is no need for such an attribute, because MSXML3 handles
the two cases differently. If you specify in your stylesheet
<div style="display: none"/> it becomes <div style="display: none" />
(invalid html)
but
<div style="display: none"></div> becomes <div style="display: none"></div>
in the output.

Note that there is _no_ need to using nbsp or xsl:comment to ensure
valid html !

I disagree with your summary above based on my own experiences that
when using the HTML serialization with MSXML and other tools.  The
distinction you make is for XML serialization, not for HTML
serialization.
Speaking only about serialization with MSXML this holds for both xsl:output
methods, XML and HTML. Why do you think its different for HTML?

Manfred

--~------------------------------------------------------------------
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>