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?


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


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