Subject: Re: XSLT stylesheet highlighter / whitespace with output method tex t From: Scott_Boag@xxxxxxxxx Date: Sun, 19 Mar 2000 14:02:02 -0500 |
rolf@xxxxxxxxxxxx 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@xxxxxxxxxxxx Sent by: To: xsl-list@xxxxxxxxxxxxxxxx owner-xsl-list@mulber cc: jonsmirl@xxxxxxxxxxxx, (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@xxxxxxxxxxxx> 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@xxxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
<- Previous | Index | Next -> |
---|---|---|
Re: XSLT stylesheet highlighter / w, Jon Smirl | Thread | Re: XSLT stylesheet highlighter / w, rolf |
Re: useful software?, Raffaele Sena | Date | RE: Future XSLT expansion., Didier PH Martin |
Month |