This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: XSLT stylesheet highlighter / whitespace with output method tex t
- To: rolf at pointsman dot de
- Subject: Re: XSLT stylesheet highlighter / whitespace with output method tex t
- From: Scott_Boag at lotus dot com
- Date: Sun, 19 Mar 2000 14:02:02 -0500
- Cc: xsl-list at mulberrytech dot com
- Reply-To: xsl-list at mulberrytech dot com
rolf@pointsman.de wrote:
> The intresting thing about it is that with <xsl:output method="text"/>
> xt and saxon produce nearly the same output. Why isn't this true for
> HTML output?
1) indenting is on by default. Different processors can handle indenting
differently, as long as they do not mess with "significant" whitespace. 2)
HTML has a lot of odd rules about whitespace handling that must be delt
with on an element-by-element basis. Most HTML serializers have the
equivelent of an HTML DTD that help them do this. The bottom line is that
the whitespace handling rules for HTML are much more complex than for
serializing a tree into XML.
-scott
rolf@pointsman.de
Sent by: To: xsl-list@mulberrytech.com
owner-xsl-list@mulber cc: jonsmirl@mediaone.net, (bcc: Scott Boag/CAM/Lotus)
rytech.com Subject: Re: XSLT stylesheet highlighter / whitespace with output
method tex t
03/19/00 12:11 PM
Please respond to
xsl-list
"Jon Smirl" <jonsmirl@mediaone.net> wrote
> Try this from Internet Explorer:
> res://msxml.dll/DEFAULTSS.XSL
> It's the stylesheet MS IE uses to display XML
I tried to get some highlighted XSLT code pieces for online (HTML)
documentation. Is this possible with your suggestion?
Independent of the usefullness of my stylesheet, I had expected, that
every XSLT processor produces nearly the same output. But this is far
from truth with <xsl:output method="html"/>
You don't need my stylesheet to realize this. Pick some XML data and a
XSLT stylesheet and produce - with, for example, xt and saxon - two
HTML files by using this input. Take a look at the outputed HTML source
code and you will probably see some significant differences between
the two results. Viewed with a HTML Browser, this differences are
mostly not visible, due to the nature of HTML. But even with HTML,
whitespace _makes_ a difference in some cases.
The intresting thing about it is that with <xsl:output method="text"/>
xt and saxon produce nearly the same output. Why isn't this true for
HTML output?
rolf
rolf@pointsman.de
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list