Re: indent not working?
Michael Ludwig <[email protected]> Wed, 10 Mar 2010 22:30:34 +0100
| Newsgroups | gmane.text.xml.xalan.java.user |
|---|---|
| Message-ID | <20100310213034.GH2224@wladimir> |
Vince schrieb am 10.03.2010 um 16:18:14 (-0500): > I'm using xalan 2.7.1 and I'm not able to translate with indentation. > <xsl:output method="text" indent="yes" xalan:indent-amount="4"/> > > And the output is not indented. > > Anyone with ideas? Yes: Your output method specifies "text". Try "xml" or "html". If the indentation is not as you expect, try adding: <xsl:strip-space elements="*"/> You should be able to learn about the effect of these from any decent reference material. -- Michael Ludwig