Maybe I am going about this all wrong, but I want to have a table row using xsl that when clicked will display a diff table in a new window. So I have this script written into the template that matches the root...
Code:
<script type="text/javascript">
function displayTable(table){
myWindow = window.open()
myWindow.document.write(table)
myWindow.focus()
}
</script>
I then make the table and place it in a variable like this....
Code:
<xsl:variable name="propTable">
<table>
<xsl:for-each select="property">
<xsl:sort select="@name"/>
<xsl:apply-templates select="."/>
</xsl:for-each>
</table>
</xsl:variable>
This is how I am making the table row...
Code:
<tr onclick="displayTable('hi')">
Which pops up the window like i expect it to and displays the word hi, which is what I expect. I need a way to be able to drop the variable propTable as a parameter for displayTable. Everything I try I keep coming back to the fact that I can't put a < in a parameter. Any thoughts?