xsl-list
[Top] [All Lists]

Re: escaping curly braces in attribute

2003-02-17 14:41:32
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



<Prev in Thread] Current Thread [Next in Thread>