XML went from a strange new idea to entrenched buzzword in record time. Its flexibility as a language for presenting structured data made it the lingua franca for sending data across the web. Early adopters used a number of programming interfaces, such as the Document Object Model (DOM) and the Simple API for XML (SAX) to parse and process it, but as XML became mainstream, it was clear that the average web user couldn't be expected to hack Java, VB, Perl, or Python code simply to make sense of XML documents. "What was needed was a flexible, powerful, yet relatively simple language capable of processing XML," says Doug Tidwell, author of "XSLT". "What the world needed was XSLT."
And so, XSLT was born from the need to separate content from presentation on the web. It is a powerful language for transforming XML documents into something else. "That something else can be an HTML document, another XML document, a Portable Document Format (PDF) file, a Scalable Vector Graphics (SVG) file, a Virtual Reality Modeling Language (VRML) file, Java code, a flat text file, a JPEG file, or most anything you want," explains Tidwell. "You write an XSLT stylesheet to define the rules for transforming an XML document, and the XSLT processor does the work."
In January, 2007, after much anticipation and delay, the W3C finally released the XSLT 2.0 standard. The new, second edition of this classic book offers practical examples that demonstrate how you can apply XSLT stylesheets to XML data using either the new specification, or the older XSLT 1.0 standard.
"XSLT" provides a thorough understanding of XSLT and XPath and their relationship to other web standards, along with recommendations for a honed toolkit in an open platform-neutral, standards-based environment. The book:
- Covers the XSLT basics, including simple stylesheets and methods for setting up transformation engines
- Walks readers through the many parts of XSLT, particularly XSLT's template-based approach to transformations
- Applies both XSLT 1.0 and 2.0 solutions to the same problems, helping readers to decide which version of XSLT is more appropriate for their projects
- Includes profuse examples that complement both the tutorial and the reference material
Tidwell says that the best review he received for the first edition of his book began, "I will never read this book." This was actually a positive review, as the reviewer went on to explain: "When I have a problem, I grab this book off the shelf, go to the index, and within five minutes, I've found the answer to my problem. Then I toss it back on the shelf."
And according to Tidwell, that's exactly the type of book he's tried to write. "There are hundreds of stylesheets in the book, including examples for every XSLT element, function, and operator defined by XSLT and XPath," he says. "The first chapters of the book are prose that explain how stylesheets work and what you need to learn to be productive with XSLT. Once you're comfortable with that material, you can use the rest of the book as a dictionary-style reference."
XSLT, Second Edition
Doug Tidwell
Download examples: XSLT-2E-examples.zip
O'Reilly Media spreads the knowledge of innovators through its books, online services, magazines, and conferences. Since 1978, O'Reilly Media has been a chronicler and catalyst of cutting-edge development, homing in on the technology trends that really matter and spurring their adoption by amplifying "faint signals" from the alpha geeks who are creating the future. An active participant in the technology community, the company has a long history of advocacy, meme-making, and evangelism.
We'd love to hear about it and pass it along to all of our readers... just contact Lynn or Fred, or post your own review at our : review input forms ...
Get the InfoManager newsletter in your mailbox each Monday morning by subscribing at: mac-pro.net ...
del.icio.us... ![]()
Return to: the top of this page, or the INDEX for this department
Exit to: The User Group Network front page
Contact: The Editor, Webmaster or Membership Director
* Discuss Photoshop
* Discuss Desktop Publishing
* Critique your Web Site