xsl-list
[Top] [All Lists]

[xsl] Re: Wrong indentation with javax.xml.transform.Transformer

2011-09-20 09:30:06
On 9/20/2011 1:30 PM, Andrew Welch wrote:
That's correct... you will probably want to strip whitespace only text
nodes from the input (which is fine provided you don't have any 'mixed
content' elements).

If the pretty printer honors the existing whitespace and adds its own
indentation then repeated application, i.e., in -> pp(in) -> pp(pp(in))
etc, should increase indentation but it doesn't: in and pp(in) may be
different but after that it's a no-op. Why? Clearly I don't have a good
mental model of how the transformer works.

-- O.L.



--~------------------------------------------------------------------
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>
--~--