XSL change to a new line

XSL (Extensible Stylesheet Language) is used to refer to a family of languages used to transform and render XML documents.

For me, I have encounter a problem when I wrote a xsl, all the output is in one line.

xsl file before :

<?xml version=”1.0″ encoding=”UTF-8″?>
<xsl:stylesheet version=”1.0″ xmlns:xsl=”http://www.w3.org/1999/XSL/Transform”&gt;
<xsl:output method=”text” version=”1.0″ encoding=”UTF-8″ omit-xml-declaration=”no” indent=”yes” />
<xsl:template match=”/”>
<xsl:apply-templates select=”path”/>
</xsl:template>
<xsl:template match=”path”>
<xsl:value-of select=”str[@name=’id’]” />,<xsl:value-of select=”str[@name=’name’]” />
</xsl:template>
</xsl:stylesheet> Continue reading