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

RE: That unwanted white space in HTML output

Subject: RE: That unwanted white space in HTML output
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Fri, 4 Feb 2000 18:47:39 -0000
unwanted spaces in html
> I believe a clause should be included in a future version of 
> the XSLT spec:
> "When emitting a result tree as HTML, whitespace should never be added
> inside inline elements."

Thanks. I'm torn; at the same time I'm being told people really like the
indenting and that it's really hard to get it right!

I'm trying now to do it now by adding whitespace before start and end tags
and before newlines in text with the proviso that I never add whitespace
immediately before or after an inline element tag and I never change the
text in PRE or SCRIPT elements. Seems to work OK, for English browsers
anyway! And you can always switch it off.

For saxon:output I've also implemented the ability to say indent="2" to
control the number of spaces. Can't do it for xsl:output, it would break the
conformance rules.

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.