This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: using a parameter as filterexpression element
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