RE: [xsl] XSLT2.0 compatibility

Subject: RE: [xsl] XSLT2.0 compatibility
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 5 Sep 2006 20:21:20 +0100
> In general it is quite good, but it doesn't give you control 
> over formatting.  For example, it outputs 3 spaces as an 
> indent.  What if I thought 2 spaces were adequate?  I cannot 
> control it.

Yes you can: saxon:indent-spaces="2"

  What if I wanted double newlines after certain 
> elements?  The list goes on, but this isn't Saxon's fault.

Saxon 8.8 allows you to define your own SerializerFactory which can generate
a custom serialization pipeline: any of the standard Saxon components in the
pipeline can be replaced by a subclass that modifies the behavior, or you
can include steps into the pipeline of your own devising. I'll be interested
to see what creative uses people can come up with for this flexibility.

Michael Kay

Current Thread