BC463Chapter 57Application: Transforming XML Dataactual sales. The goal (Web server extensions)
Sunday, January 27th, 2008BC463Chapter 57Application: Transforming XML Dataactual sales. The goal is to present the data in table form with a structure similarly shown inFigure 57-1. Not only is the raw data presented, but numerous calculations are also made onthe results, such as the percentage of quota attained for each reporting period, plus totalsalong each axis of the spreadsheet-like table. Just above the table are two selectelements. These controls labels indicate that the table sdata can be sorted by a number of criteria and the results of each sort can be ordered in dif- ferent ways. Sorting in the example offers the following possibilities: Representative s NameSales RegionQ1 ForecastQ1 ActualQ1 Performance[the last three also for Q2, Q3, Q4] Total ForecastTotal ActualTotal PerformanceOrdering of the sorted results is a choice between Low to High or High to Low. Whileordering of most sort categories is obviously based on numeric value, the sorting of the rep- resentatives names is based on the alphabetical order of the last names. One other pointabout the user interface is that the design needs to signify via table cell background colorthe sales region of each representative. The colors aren t easily distinguishable in Figure57-1, but if you open the actual example listing in WinIE5+ or NN7+/Moz on your computer, you will see the coloration. Figure 57-1:One view of the XML data output.