[xsl] Clean XSL code for the following javascript

Subject: [xsl] Clean XSL code for the following javascript
From: "Karl Stubsjoen" <kstubs@xxxxxxxxx>
Date: Wed, 17 Jan 2007 08:57:22 -0700
What is the cleanest way to code the following javascript code in my XSL:

<a href="#" onlick="Position.clone('ElementA', 'ElementB', {setHeight:
false, setWidth: false})">-click-<a/>

These are the correct (??) unicode characters for:

{ =  &#007B;
} =  &#007D;

Here is where I found these codes:
http://www.unicode.org/charts/PDF/U0000.pdf

I tried injecting this straight into the onlick attribute, but failing
with a decimal syntax issue... (which I haven't seen before).

So I tried:

<a href="#" onclick="Position.clone('{$ElementA}', '{$ElementB}',
&#007B;setheight: false, setWidth: false &#007D;)">-click me-</a>

The exact error is:
Invalid character in a decimal number 'B'



Karl..

Current Thread