Subject: [xsl] Re: Wrong indentation with javax.xml.transform.Transformer From: Olivier Lefevre <lefevrol@xxxxxxxxx> Date: Tue, 20 Sep 2011 17:48:39 +0200 |
Thanks, yes in retrospect you are right: my mistake was to think about it imperatively but under the cover it's an XSLT stylesheet, which is declarative, and therefore has no reason to do anything when it is already at the desired destination.
> And "pretty" (which fits well with the XSLT 1 use of the technical term "nicely") > is in the eye of the beholder.
I think everyone's definition of pretty-printing output would include a clause that nodes at the same logical level, e.g., a tag and its closing counterpart, should be indented by the same amount. Otherwise the tree is out of whack.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Re: Wrong indentation wit, G. Ken Holman | Thread | Re: [xsl] Wrong indentation with j, Philip Fearon |
Re: [xsl] Re: Wrong indentation wit, G. Ken Holman | Date | Re: [xsl] Wrong indentation with j, Philip Fearon |
Month |