Chapter 9
Tweaking the Results to Get What You Want
In This Chapter
Sorting text and numeric results
Changing sort order
Sorting with multiple keys
Auto-numbering your result document
Handling outline-style numbering
I bet you’ve seen those commercials that promise you what you want when you need it: news at your fingertips, unmatched performance from your car, great taste, less filling. However, I don’t need a firm voice and a well-groomed toupee or a slick song culled from a little-known album to convince you that you can get what you want from XSLT.
However, to do so might involve a little “tweaking” of your stylesheets. You will find the practice of tweaking to be both useful and necessary when working with XSLT result documents. In this chapter, I look at how you can refine and fine-tune your output documents by sorting and auto-numbering the results.
Sorting Elements in the Results Tree
Until now, all the nodes in the result trees have always been in the same order in which ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access