|
Subject: RE: [xsl] Clean XSL code for the following javascript From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Wed, 17 Jan 2007 18:42:39 -0000 |
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: [xsl] 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..
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Clean XSL code for the fo, Abel Braaksma | Thread | Re: [xsl] Clean XSL code for the fo, Karl Stubsjoen |
| Re: [xsl] Clean XSL code for the fo, Abel Braaksma | Date | RE: [xsl] saxon error, Michael Kay |
| Month |