Re: [xsl] using a parameter as filterexpression element

Subject: Re: [xsl] using a parameter as filterexpression element
From: Francis Norton <francis@xxxxxxxxxxx>
Date: Fri, 01 Jun 2001 12:17:54 +0100

Mattias Konradsson wrote:
> 
> so, is it possible to pass both the element and the element value in a
> filter?
> 

Try this -

 <xsl:variable name="selection_all" select="//header/*[local-name() =
$TheElement][. = $current_user]"/>

(you could use a single predicate joining the two conditions with an
"and" expression instead - this two-predicate form might be *slightly*
more efficient)

Francis.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread