Subject: Re: Clean XSL code for the following javascript
From: "Karl Stubsjoen" <kstubs@xxxxxxxxx>
Date: Wed, 17 Jan 2007 15:18:07 -0700
|
Ahh! I like the double braces best anyhow... will do. (too bad that
doesn't work with the apostrophe)
On 1/17/07, Michael Kay <mike@xxxxxxxxxxxx> wrote:
If you're going to use hexadecimal character references, they need to be
written as
{
}
But this won't help you. The character references are seen by XSLT/XPath as
curly braces. The mechanism for escaping curly braces in XSLT is to double
them: {{ and }}.
Michael Kay
http://www.saxonica.com/
> -----Original Message-----
> From: Karl Stubsjoen [mailto:kstubs@xxxxxxxxx]
> Sent: 17 January 2007 15:57
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Clean XSL code for the following javascript
>
> 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:
>
> { = B;
> } = D;
>
> 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}',
> B;setheight: false, setWidth: false D;)">-click me-</a>
>
> The exact error is:
> Invalid character in a decimal number 'B'
>
>
>
> Karl..
|