RE: [xsl] How to simplify this?

Subject: RE: [xsl] How to simplify this?
From: "Andrew Welch" <ajwelch@xxxxxxxxxxxxxxx>
Date: Tue, 21 Sep 2004 17:20:58 +0100
> In the HTML-output I need a javascript function with ' mark.
> My template get two parameters, which I wish in single-quoted
> mark. So I define additional three variables for this. Is
> there a better way to do this?

You don't need the variables, just write the apostrophies in directly:

<a onclick="setArrow( {$colPos},'{$thead_id}'); return
sortTable('{$tbody_id}',{$colPos} );">
                                ^           ^                    ^
^

cheers
andrew

Current Thread