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

RE: Control over html output

Subject: RE: Control over html output
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Mon, 21 May 2001 09:22:05 +0100
html add whitespace
> > In this case the linebreak causes undesirable whitespace to appear
> > in the resulting document in certain browsers. At the moment I'm
> > having to rely on the rather crude solution of setting the html
> > output indent to "no" to avoid this, but this seems a rather
> > inelegant solution...
>
> That's the most elegant solution you'll find :)  By default,
> processors indent HTML output, which means they can add whitespace to
> make it easier to read.  The indent attribute on xsl:output is
> specifically designed to control that.

Yes, but the rules also say that when you use indent="yes", the processor
must only add extra whitespace in places where it won't show in the browser.
So if it makes a difference to what you see on the browser screen, something
is wrong.

Mike Kay


 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.