xsl-list
[Top] [All Lists]

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

2007-01-17 09:03:24
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--