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>