-
Chapter 1 Transforming Documents with XSLT
-
How XSLT Works
-
Using Client-Side XSLT in a Browser
-
Using apply-templates
-
Summary
-
-
Chapter 2 Building New Documents with XSLT
-
Outputting Text
-
Literal Result Elements
-
Using the Element Called element
-
Adding Attributes
-
Outputting Comments
-
Outputting Processing Instructions
-
One Final Example
-
Summary
-
-
Chapter 3 Controlling Output
-
The Output Method
-
Outputting XML
-
Outputting HTML
-
Outputting Text
-
Using a QName Output Method
-
Media Types
-
Summary
-
-
Chapter 4 Traversing the Tree
-
The XPath Data Model
-
Location Paths
-
Expressions
-
What Is a Pattern?
-
Predicates
-
Axes
-
Name and Node Tests
-
Doing the Math with Expressions
-
Summary
-
-
Chapter 5 XPath and XSLT Functions
-
Boolean Functions
-
Node-Set Functions
-
Number Functions
-
String Functions
-
Summary
-
-
Chapter 6 Copying Nodes
-
The copy Element
-
The copy-of Element
-
Copying Nodes from Two Documents
-
Summary
-
-
Chapter 7 Using Variables and Parameters
-
Defining Variables and Parameters
-
Using Variables
-
Using Parameters
-
Invoking Templates with Parameters
-
Using Result Tree Fragments
-
Summary
-
-
Chapter 8 Sorting Things Out
-
Simple Ascending Sort
-
Reversing the Sort
-
By the Numbers
-
Multiple Sorts
-
The lang and case-order Attributes
-
Summary
-
-
Chapter 9 Numbering Lists
-
Numbered Lists
-
Alphabetical Lists
-
Roman Numerals
-
Inserting an Individual Formatted Value
-
Numbering Levels
-
The from Attribute
-
The lang and letter-value Attributes
-
More Help with Formatted Numbers
-
Summary
-
-
Chapter 10 Templates
-
Template Priority
-
Calling a Named Template
-
Using Templates with Parameters
-
Modes
-
Built-in Template Rules
-
Summary
-
-
Chapter 11 Using Keys
-
A Simple Key
-
More Than One Key
-
Using a Parameter with Keys
-
Cross-Referencing with Keys
-
Grouping with Keys
-
Summary
-
-
Chapter 12 Conditional Processing
-
The if Element
-
The choose and when Elements
-
Summary
-
-
Chapter 13 Working with Multiple Documents
-
Including Stylesheets
-
Importing Stylesheets
-
Using the document( ) Function
-
Summary
-
-
Chapter 14 Alternative Stylesheets
-
A Literal Result Element Stylesheet
-
An Embedded Stylesheet
-
Aliasing a Namespace
-
Excluding Namespaces
-
Summary
-
-
Chapter 15 Extensions
-
Xalan, Saxon, and EXSLT Extensions
-
Using a Saxon Extension Attribute
-
Result Tree Fragment to Node-Set
-
Using EXSLT
-
Fallback Behavior
-
Checking for Extension Availability
-
Summary
-
-
Chapter 16 XSLT 2.0 and XPath 2.0
-
New XSLT 2.0 Features
-
New XPath 2.0 Features
-
Multiple Result Trees
-
Using Regular Expressions
-
Grouping in XSLT 2.0
-
Extension Functions
-
Summary
-
-
Chapter 17 Writing an XSLT ProcessorInterface
-
Running an XSLT Processor from Java
-
Writing an XSLT Processor with C#
-
Summary
-
-
Chapter 18 Parting Words
-
The Ox Documentation Tool
-
Signing Off
-
-
Appendix A XSLT Processors
-
Installing and Running XSLT Processors
-
Using jd.xslt
-
-
Glossary
-
Colophon
- Title:
- Learning XSLT
- By:
- Michael Fitzgerald
- Publisher:
- O'Reilly Media
- Formats:
-
- Ebook
- Safari Books Online
- Print Release:
- November 2003
- Ebook Release:
- June 2009
- Pages:
- 368
- Print ISBN:
- 978-0-596-00327-2
- | ISBN 10:
- 0-596-00327-7
- Ebook ISBN:
- 978-0-596-55607-5
- | ISBN 10:
- 0-596-55607-1
Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animal on the cover of Learning XSLT is a Marabou stork (Leptoptilos crumeniferus). Among the largest flying birds in the world, the Marabou stork's flight capability is facilitated by hollowtoe bones, which are an important adaptation for flight, considering its large size. The adult male's wingspan is approximately 9.5 feet (2.9 meters). He can stand up to 5 feet tall (1.5 meters) and weigh 20 pounds (9 kilograms). The size and wingspan of females are generally smaller.
Native to the marshes and savannahs of Africa, Marabou storks can also be found near landfills, abattoirs, and fishing villages. Marabous have adapted well to human growth and activity, which has benefited the thriving species. Because they ingest bacterial waste, Marabou storks help humans by reducing the spread of disease, and thus, they are important predators. Their powerful beaks break through the rough hides of rotting mammal carcasses, which speeds up the decomposition process and enables weaker scavengers to feast on the dead fleash. Marabous are attracted to grass fires, where they hunt the small animals fleeing from the blaze. They will eat almost any kind of animal, dead or alive, from caterpillars to flamingos to elephants. These hefty protein diets are necessary for adult Marabous; they require over 25 ounces (700 grams) of food a day.
Marabous are large carnivores, notoriously ugly, not only because of their unsavory habits, including squirting excrement onto their own legs, but also because of their featherless, scabby, pink heads and necks speckled with dark pigmentation spots. Interestingly, Marabous evolved bald heads to avoid getting their feathers soiled by the bloody carnage of successful scavenging expeditions. In breeding season, the bare neck turns a pale blue-green, and the spots on the head and neck become encrusted with dried blood. Although the birds are generally considered unsightly, their soft, white tail feathers, called marabou, were once fashionable as trim for hats and gowns.
Marabou storks are colonial breeders, and they will return to the same community nesting site year after year. The male Marabou stork arrives at the nesting site first, in order to establish his territory. As he treats all newcomers with hostility, the courting female responds with submission, waiting to be accepted as his mate. Like lobsters, penguins, and most bird species, Marabou storks mate for life. Females usually lay 2 to 3 eggs during a breeding season that both parents will help incubate for 29 to 31 days. Marabous nest in the dry season when low water levels make it easier to catch prey, such as frogs and small fish, to feed their young. The relatively long pre-fledgling period lasts 95 to 115 days. Marabous reach sexual maturity at approximately four years of age. In zoos, and possibly in the wild, Marabou storks can live up to 25 years. Marlowe Shaeffer was the production editor and copyeditor for Learning XSLT. Mary Brady was the proofreader. Emily Quill and Claire Cloutier provided quality control. John Bickelhaupt wrote the index.
Ellie Volckhausen designed the cover of this book, based on a series design by Edie Freedman. The cover image is a 19th-century engraving from the Dover Pictorial Archive. Emma Colby produced the cover layout with QuarkXPress 4.1 using Adobe's ITC Garamond font.
David Futato designed the interior layout. This book was converted by Joe Wizda to FrameMaker 5.5.6 with a format conversion tool created by Erik Ray, Jason McIntosh, Neil Walls, and Mike Sierra that uses Perl and XML technologies. The text font is Linotype Birka; the heading font is Adobe Myriad Condensed; and the code font is LucasFont's TheSans Mono Condensed. The illustrations that appear in the book were produced by Robert Romano and Jessamyn Read using Macromedia FreeHand 9 and Adobe Photoshop 6. The tip and warning icons were drawn by Christopher Bing. This colophon was written by Marlowe Shaeffer.
