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

Re: change number of indent blanks from default=3 to

Subject: Re: change number of indent blanks from default=3 to 2 ?
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Tue, 03 Aug 2010 12:37:29 +0100
Re:  change number of  indent blanks from default=3 to
for Saxon it is possible:
http://www.saxonica.com/documentation/extensions/output-extras/indent-spaces.html



for me, it is not quite good, because I want tab as indentation character. Does anybody know how to accomplish this?

The only way to do that is to subclass the SerializerFactory with your own version in which you override the newXMLIndenter() to substitute the XMLIndenter in the pipeline with your own version. You can create that with a few simple mods to the standard XMLIndenter. You can set your own SerializerFactory using the configuration property "http://saxon.sf.net/feature/serializerFactoryClass", e.g. with the option --serializerFactoryClass=com.me.mySerializerFactory on the command line.


Michael Kay
Saxonica

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.