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

"Maria Amuchastegui" <[email protected]>
Newsgroups gmane.comp.mozilla.devel.layout.xslt
Organization epost
Message-ID <[email protected]>
If I change the setParameter statements to this:

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

And I change the <xsl:sort> element to this:

<xsl:sort select="$sortKey" order="$sortOrder"/>

Then nothing happens.

Maria



"Emmanouil Batsis" <[email protected]> wrote in message 
news:[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.