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

Numbering

In addition to sorting, you can also use XSLT to automate the numbering of items. For example, if you had a list of names that you wanted to number, you could use the xsl:number element to automatically process the names for numbering.

xsl:number

The xsl:number element allows you to number items automatically, based on criteria you select, and with a numbering system, which you specify. The element accepts a number of attributes, including

  • format— The format attribute allows you to specify the number format to be used for numbering. The default value is “1”; however, you can also substitute characters, to number items with letters—for instance A, B, C…. Common values for format include “A,” “a,” “I,” and “i.”

  • value— This attribute is ...

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