I'm beggining in XML and XSLT and I have a problem with adding a new line beetwen elements
Here's XML:
<?xml version="1.0" encoding="UTF-8"?>
<numbers>
<person id="1">
<phone>
<phone_nr>111111111</phone_nr>
<phone_nr>222222222</phone_nr>
</phone>
</person>
<person id="2">
<phone>
<phone_nr>333333333</phone_nr>
</phone>
</person>
</numbers>
XSLT looks like:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<xsl:for-each select="numbers/person">
<table border="1">
<tr>
<td>
<table>
<td><xsl:value-of select="phone"/></td>
</table>
</td>
</tr>
</table>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
and it gives me this (with borders) :
111111111 222222222
333333333
but what I want is:
111111111
222222222
333333333
The problem is that XML must be like this and I don't know, how to creating a new line in XSLT.