Andy,
>> Just out of interest, can anyone explain why indenting is not applied
>> to the output of this transformation?
>
> I haven't managed to fix this - any ideas/suggestions gratefully
received!
Which XSLT processor are you using? Xalan?
The XSLT spec http://www.w3.org/TR/xslt says (section 16.1)
====
If the indent attribute has the value yes, then the xml output method
may output whitespace in addition to the whitespace in the result tree
(possibly based on whitespace stripped from either the source document
or the stylesheet) in order to indent the result nicely; if the indent
attribute has the value no, it should not output any additional
whitespace. The default value is no.
====
so I think that "may" in the first line allows latitude for processors
to behave differently. I haven't tried your stylesheet but I'll have a
go with Saxon when I get a minute and I'll let you know what it does....
Pete
|