I have a method methodA() which returns an arraylist of elements.Now I am trying to prepare HTML report using XSL.

Here is what I am doing:

First I am preparing an XML for my XSL file.Say I am creating a textnode as:

```
Element unusedX = docforXSL.createElement("Unused");
unusedX.appendChild(docforXSL.createTextNode(StringUtils.join(methodA().iterator(), ",")));   

```

My XML will look like

```
<Unused>arraylist elements separated by commas</Unused>

```

Here I am using the join() method of Commons.lang StringUtils which takes second parameter as separator.Right now I am using comma(,) as a separator.My XSL code which will render this node is:

```
<td align = "center"><xsl:value-of select="Unused"/></td>

```

Here I will get my arraylist elements separated by commas in a column of my report.

In my HTML report I want each arraylist element to be on different line(line break) instead of being separated by commas.

If I am giving HTML line break(br) or \n as second parameter it is not rendering them properly in HTML file.

Kindly advice!!!