[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] How to simplify this?


Subject: RE: [xsl] How to simplify this?
From: "anton" <a.m@xxxxxxxxxxx>
Date: Tue, 21 Sep 2004 18:47:02 +0200

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


Current Thread