xsl-list
[Top] [All Lists]

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

2010-08-03 06:37:44

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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--