This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: using parameters in filters?


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]