Skip to Content
Special Edition Using XML, Second Edition
book

Special Edition Using XML, Second Edition

by - et al. David Gulbransen
July 2002
Intermediate to advanced
864 pages
22h 32m
English
Que
Content preview from Special Edition Using XML, Second Edition

Sorting

Another feature of XSLT is the ability to sort elements based on a specific set of criteria.

xsl:sort

Attributes:

  • select— This attribute uses an XPath expression to select the component, which is used as the key for the sort.

  • lang— This attribute allows you to select the language for the sort, which will govern how alphabetical sorting will occur, based on the character set for the specified language.

  • data-type— This attribute allows you to specify the datatype of the key values, which are used in sorting, and can accept values of text or number. If text is selected, then the sort is performed in accordance with the rules for sorting text, based on the language selected. If number is selected, then the sort is performed based on a numbered ...

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.
Start your free trial

You might also like

XML Pocket Reference, 3rd Edition

XML Pocket Reference, 3rd Edition

Simon St. Laurent, Michael Fitzgerald
Essential XML: Beyond Markup

Essential XML: Beyond Markup

Don Box, Aaron Skonnard, John Lam

Publisher Resources

ISBN: 078972748XPurchase book