[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XSLT stylesheet highlighter / whitespace with output met

Subject: Re: XSLT stylesheet highlighter / whitespace with output method html
From: rolf@xxxxxxxxxxxx
Date: Sun, 19 Mar 2000 22:11:49 +0100 (MET)
output met xsl

There is nobody to blame but me. With <xsl:output method="html"
indent="no"/> xt, saxon and xalan produces, viewed with a browser, the
same result, as expected. You're absolutely right, according to the
standard indenting is on by default for html output; I overlooked
that.

So the mailed stylesheet - with this correction - may be a nice and
easy tool to produce some highlighted HTML Version of XSL stylesheets
only with xslt, for online documentation or whatever. Have fun with
it.

Greetings, rolf
rolf@xxxxxxxxxxxx


On 19 Mar, Scott_Boag@xxxxxxxxx wrote:
> 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



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.