I am trying to insert a jquery datatables into an XSLT sheet after a table and am having a problem with getting it to replace @id with the id of the table like it is in other portions of the script. I suppose it has something to do with escaping, but I tried putting double curly brackets inside the script to no avail. Could someone point me in the right direction?
The portion of my XSLT looks like:
</table>
<script type='text/javascript' src='/js/jquery.dataTables.js'></script>
<script type="text/javascript">
<xsl:text disable-output-escaping="yes" >
<![CDATA[
$(document).ready(function() {
$('{@id}').dataTable({
"aaSorting": [],
"sDom": '<"vctable"<"#title"lf>rt<"#bottom"ip><"clear">>',
"iDisplayLength": 25
});
$('{@id}').show();
});
]]>
</xsl:text>
</script>