XSL line breaks & Javascript

I’m trying to use xsl to write out an html element with an onclick function and I want pass a value from the xml doc to the function. The issue is that I’m getting a line break before every <xsl:value-of tag and that’s causing errors in IE & FF. Here’s the xsl:

<xsl:variable name=“RecName”>

<xsl:value-of select=“entrydata[@columnnumber = ‘4’]” />

</xsl:variable>

<xsl:variable name=“UNID”>

<xsl:value-of select=“entrydata[@columnnumber = ‘6’]” />

</xsl:variable>

			<xsl:value-of select="entrydata[@columnnumber = '5']" />

		</td>

Here is what my html is being rendered as:

<td onclick="addRec(' <p>Cracked Windshield’,’</p> <p>63D0B9DA6BBE32F7852570C10067640C’)" class=“rbCol2”>blah</td></p>

Subject: XSL line breaks & Javascript

I did have everything on one line. I gave up, sort of. I decided that instead of adding an onclick event to trigger script, I would use jQuerys draggable/droppable scripts to trigger the event and that works much better.

Subject: XSL line breaks & Javascript

In your xsl file is the code for the <td…> all on one line?