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

Re: generating human-readable HTML

Subject: Re: generating human-readable HTML
From: Kevin Rodgers <kevin.rodgers@xxxxxxx>
Date: Tue, 1 Mar 2005 16:53:34 -0700
indent html
Brian Chrisman writes:
> Are you just trying to not get the 'one line of output', or is there a
> deeper reason you need to keep the newlines?

There is no deeper reason, just readability.

> If not, have you tried putting indent="yes" in your xsl:output
> declaration?

I hadn't tried that, because the XSLT spec says:

	The value of the indent attribute provides the value of the
	indent parameter to the serialization method. The default value
	is yes in the case of the html and xhtml output methods, no in
	the case of the xml output method.

and my xsl:output declaration already has method="xhtml".  But sure
enough, adding indent="yes" gives much better results -- thanks!

-- 
Kevin

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.