How to indent the XML-Output of XSLT in Eclipse? <p>I don't habe any ideas how to indent my XML-Output in Eclipse. Currently I have everything in one row.</p> <p>What should I define beside indent="yes" in my XSLT?</p> <p></p> <p>Another problem is that I can not eliminate xmlns:dc="http://purl.org/dc/elements/1.1/ after every DC-tag in my Output-XML. It's really surprising that exclude-result-prefixes="dc dcterms "> only excludes dcterms, but not for dc.</p> <p>Maybe someone has an idea?</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dc="http://purl.org/dc/elements/1.1/" exclude-result-prefixes="dc dcterms "&gt; &lt;xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" /&gt; Output XML: &lt;dc:titel xmlns:dc="http://purl.org/dc/elements/1.1/"&gt;Fragebogen FB001&lt;/dc:titel&gt; but it should be : &lt;dc:titel&gt;Fragebogen&lt;/dc:titel&gt; </code></pre>