Re: Using Javascript to pass a parameter to the <xsl:sort> element

Emmanouil Batsis <[email protected]>
Newsgroups gmane.comp.mozilla.devel.layout.xslt
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
Maria me ta kitrina,

Maria Amuchastegui wrote:

>    xsltProcessor.setParameter(null, "sortKey", column);
>    xsltProcessor.setParameter(null, "sortOrder", order);;

The parameter is evaluated as an XPath expression, so if you want it to 
result to a string instead of a node set, you probably also want 
"'sortKey'" instead of "sortKey" etc. You also have an empty statement 
above.

Cheers,

Manos
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.