Using a Math Expression with a Parameter for Conditional Formatting
In addition to enabling you to display parameters, use conditional formatting, and modify ASP.NET controls, the power of XSLT also provides another layer of data functionality: When you have numerical values in your data, you can use XPath expressions to perform mathematical functions on those numbers. For example, you can add a summary row to a data view and create a Totals column or calculate the average price of your products.
In this exercise, you will insert a new column into a data view and then create a mathematical expression in XPath that will be used for conditional formatting.
Note
USE the products.stp template and the newParameters.aspx ASPX file. These practice files ...
Get Building Web Applications with Microsoft® Office SharePoint® Designer 2007 Step by Step now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.