Publisher: O'Reilly Media Released: August 2001 Pages: 480
XSLT documents a core technology for processing XML. Originally created for page layout, XSLT (Extensible Stylesheet Transformations) is now much more: a general-purpose translation tool, a system for reorganizing document content, and a way to generate multiple results-- such as HTML, WAP, and SVG--from the same content. What sets XSLT apart from other books on this critical tool is the depth of detail and breadth of knowledge that Doug Tidwell, a developer with years of XSLT experience, brings to his concise treatment of the many talents of XSLT. He covers XSLT and XPath, a critical companion standard, and addresses topics ranging from basic transformations to complex sorting and linking. He explores extension functions on a variety of different XSLT processors and shows ways to combine multiple documents using XSLT. Code examples add a real-world dimension to each technique. Useful as XSLT is, its peculiar characteristics make it difficult to get started in, and the ability to use advanced techniques depends on a clear and exact understanding of how XSLT templates work and interact. For instance, the understanding of "variables" in XSLT is deeply different from the understanding of "variables" in procedural languages. The author explains XSLT by building from the basics to its more complex and powerful possibilities, so that whether you're just starting out in XSLT or looking for advanced techniques, you'll find the level of information you need. |
-
Chapter 1 Getting Started -
The Design of XSLT -
XML Basics -
Installing Xalan -
Summary -
Chapter 2 The Obligatory Hello World Example -
Goals of This Chapter -
Transforming Hello World -
How a Stylesheet Is Processed -
Stylesheet Structure -
Sample Gallery -
Summary -
Chapter 3 XPath: A Syntax for Describing Needles and Haystacks -
The XPath Data Model -
Location Paths -
Attribute Value Templates -
XPath Datatypes -
The XPath View of an XML Document -
Summary -
Chapter 4 Branching and Control Elements -
Goals of This Chapter -
Branching Elements of XSLT -
Invoking Templates by Name -
Parameters -
Variables -
Using Recursion to Do Most Anything -
A Stylesheet That Emulates a for Loop -
A Stylesheet That Generates a Stylesheet That Emulates a for Loop -
Summary -
Chapter 5 Creating Links and Cross-References -
Generating Links with the id() Function -
Generating Links with the key() Function -
Generating Links in Unstructured Documents -
Summary -
Chapter 6 Sorting and Grouping Elements -
Sorting Data with <xsl:sort> -
Grouping Nodes -
Summary -
Chapter 7 Combining XML Documents -
Overview -
The document() Function -
Invoking the document() Function -
More Sophisticated Techniques -
Summary -
Chapter 8 Extending XSLT -
Extension Elements, Extension Functions, and Fallback Processing -
Extending the Saxon Processor -
More Examples -
Summary -
Chapter 9 Case Study: The Toot-O-Matic -
About the Toot-O-Matic -
Design Goals -
Tutorial Layout -
XML Document Design -
XSLT Source Code -
Summary -
Appendix XSLT Reference -
Appendix XPath Reference -
XPath Node Types -
XPath Node Tests -
XPath Axes -
XPath Operators -
Datatypes -
The XPath Context -
Appendix XSLT and XPath Function Reference -
Appendix XSLT Guide -
How Do I Put Quotes Inside an Attribute Value? -
How Do I Convert All Attributes to Elements? -
How Do I List All the Elements in an XML Document? -
How Do I Implement an if Statement? -
How Do I Implement an if-else Statement? -
How Do I Implement a for Loop? -
How Do I Implement a case Statement? -
How Do I Group Elements in an XML Document? -
How Do I Group Elements Pulled from Multiple XML Documents? -
How Do I Combine XML Documents into a Single Master Document? -
How Do I Resolve Cross-References? -
How Do I Generate Some Text? -
How Do I Control Angle Brackets and Quote Marks in My Output? -
Glossary -
Colophon |
- Title:
- XSLT
- By:
- Doug Tidwell
- Publisher:
- O'Reilly Media
- Formats:
-
- Print
- Safari Books Online
- Print:
- August 2001
- Pages:
- 480
- Print ISBN:
- 978-0-596-00053-0
- | ISBN 10:
- 0-596-00053-7
|
-
Doug Tidwell Doug Tidwell is a senior programmer at IBM. He has more than a sixth of a century of programming experience, and has been working with markup languages for more than a decade. He was a speaker at the first XML conference in 1997, and has taught XML classes around the world. His job as a Cyber Evangelist is to look busy and to help people use new technologies to solve problems. Using a pair of zircon-encrusted tweezers, he holds a master's degree in computer science from Vanderbilt University and a bachelor's degree in English from the University of Georgia. He lives in Raleigh, North Carolina, with his wife, cooking teacher Sheri Castle (see her web site at http://www.sheri-inc.com) and their daughter Lily. View Doug Tidwell's full profile page. |
Colophon 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 XSLT is a jabiru. Standing up to five feet tall and with a wingspan of eight feet, this wading stork is the largest flying bird in the western hemisphere. The bird's habitat ranges from southern Mexico to northern Argentina, and much of its migrating population is found in Belize from November through July. Its habitat generally includes coastal areas, savannas, and marshes. The jabiru population has steadily decreased over the past decades due to hunting and deforestation, but some areas of Central America have seen a slow recovery in the bird's population. Ann Schirmer was the production editor and copyeditor forXSLT. Linley Dolby and Jeffrey Holcomb were the proofreaders. Claire Cloutier, Emily Quill, and Rachel Wheeler provided quality control. Brenda Miller wrote the index. Interior composition was done by Ann Schirmer. Emma Colby designed the cover of this book, based on a series design by Edie Freedman. The cover image is an original antique engraving from the 19th century. Emma Colby produced the cover layout with QuarkXPress 4.1 using Adobe's ITC Garamond font. David Futato designed the interior layout, based on a series design by Nancy Priest. This book was written entirely in XML. The book's print version was created by translating the XML source into a set of gtroff macros using a Perl filter developed by Norman Walsh. Erik Ray wrote extensions to the filter. Steve Talbott designed and wrote the underlying macro set on the basis of the GNU gtroff -ms macros; Lenny Muellner adapted them to XML and implemented the book design. The GNU groff text formatter Version 1.11 was used to generate PostScript output. The text and heading fonts are ITC Garamond Light and Garamond Book; the code font is Constant Willison. The illustrations that appear in the book were produced by Robert Romano and Jessamyn Read using Macromedia FreeHand 9 and Adobe Photoshop 6. This colophon was written by Ann Schirmer. |
|
Description
|
Table of Contents
|
Product Details
|
About the Author
|
Colophon
|
 |
|
 |
|
|
|
Recommended for You
|
Recently Viewed
|
 |
|
By David Boswell, Brian King, Ian Oeschger, Pete Collins, Eric Murphy
September 2002
By David Flanagan
November 2001
By Andrew Ford
December 2000
|
Customer Reviews
6/30/2008 4.0Both tutorial and reference By Doug Domeny from Undisclosed 4/5/2006 4.0Example obscured by detail By Mike Webster from Undisclosed 11/15/2004 (0 of 1 customers found this review helpful) By Gan Uesli Starling from Undisclosed By Neil Milne from Undisclosed 2/27/2002 (1 of 2 customers found this review helpful) By Donald W. Larson from Undisclosed 2/24/2002 (1 of 1 customers found this review helpful) By karthik from Undisclosed
|
|
|