xsl-list
[Top] [All Lists]

RE: How to simplify this?

2004-09-21 09:47:02
Hi!


Is there a better way to do this?
you don't need to use variables unless you want to.

In your case it looks like you want to do something like

 onclick="setArrow({position()-1}),'{$thead_id}',;
  return sortTable('{$body_id}',{position()-1}) "


If I use '{$thead_id}', so I get in the output this as string and not my id.


Ouch you almost never want to use disable-output-escaping like that, just
use <xsl:text>&#160;&8593;</xsl:text>


that works. Thank you!


best wishes
A. Metz



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