[xsl] Re: escaping curly braces in attribute

Subject: [xsl] Re: escaping curly braces in attribute
From: "Dimitre Novatchev" <dnovatchev@xxxxxxxxx>
Date: Mon, 17 Feb 2003 22:41:32 +0100
> i need to output
>
> onclick="if(foo) {return bar}"
>
> but of course the {}'s are causing errors.
> so i tried
>
> onclick="if(foo) \{return bar\}"
>
> but that's not it...

Use:

 onclick="if(foo) {{return bar}}"


=====
Cheers,

Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread