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: "Chris Bayes" <Chris at Bayes dot co dot uk>
- Date: Sat, 24 Feb 2001 12:30:39 -0000
- Reply-To: xsl-list at lists dot mulberrytech dot com
Mattias,
As you're already working in javascript and you have your stylesheet in a
dom just modify it directly before doing the transform.
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
XML/XSL Portal
http://www.bayes.co.uk/xml
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list