This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: using parameters in filters?
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: Re: [xsl] using parameters in filters?
- From: "Mattias Konradsson" <preacher at fragzone dot se>
- Date: Sat, 24 Feb 2001 14:03:33 +0100
- References: <NABBLNLEFKJBBIBELMLOIENPMKAA.Chris@Bayes.co.uk>
- Reply-To: xsl-list at lists dot mulberrytech dot com
> var filterNode =
>
xslDoc.selectSingleNode("/xsl:stylesheet/xsl:template[@match='something']/xs
> l:apply-templates");
> filterNode.setAttribute("select", "message[@repliedto = 'False']");
> var html = xmlDoc.transformNode(xslDoc);
>
> Similar for the sort.
>
> Ciao Chris
Yeah I know .. that was the way I did it before but I thought "gee wiz,
parameters... now I can write a clean and nice parameterized stylesheets"
but here's a newsflash "WHAT FRIGGIN GOOD IS PARAMETERS IF YOU CAN'T INSERT
THEM EVERYWHERE" :)
...and of course you couldn't set the order attribute of the sort element to
a param either, go figure
Best Regards
----
Mattias Konradsson
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list