Re: [xsl] change number of indent blanks from default=3 to 2 ?

Subject: Re: [xsl] change number of indent blanks from default=3 to 2 ?
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Tue, 03 Aug 2010 12:17:34 +0200
Ben Stover wrote:
I applied the following simple XSLT script onto a given XML doc which let me indent the tags according to their hierarchy level.

The number of blanks used for each level is by default 3.
How can I change this to 2

Such things depends on the XSLT processor you use, Saxon 9.2 has a serialization option
http://www.saxonica.com/documentation/extensions/output-extras/indent-spaces.html
http://www.saxonica.com/documentation/extensions/output-extras.html
that allows you to set the number of spaces.


--

	Martin Honnen
	http://msmvps.com/blogs/martin_honnen/

Current Thread