Re: [xsl] Clean XSL code for the following javascript

Subject: Re: [xsl] Clean XSL code for the following javascript
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Wed, 17 Jan 2007 17:01:57 +0100
Karl Stubsjoen wrote:

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


I think you mean to want to know how to escape the { and } characters in an Attribute Value Template, correct? You can do so by using {{ and }} respectively:


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

-- Abel Braaksma

Current Thread