[thelist] [XSL] New Line

MarsHall evolt at marsorange.com
Fri Nov 15 12:44:01 CST 2002


On Friday, Nov 15, 2002, at 11:48 US/Central, Chris Marsh wrote:
> Can anyone suggest the best way of doing
> this? Is there a new line character in XSL?

To your <xsl:output /> element, add the attribute:

	indent="yes"

So you will have something like:

<xsl:output
		method="html"
		encoding="iso-8859-1"
		doctype-system="theSystemDocTypeHere"
		doctype-public="thePublicDocTypeHere"
		indent="yes" />

By specifying indentation, most conformant engines will add linebreaks
and tabs to make the output [more] human readable.

Mars :)




More information about the thelist mailing list