Forget those funky robot toys that were all the rage in the '80s, XSLT (Extensible Stylesheet Transformations) is the ultimate transformer. This powerful language is expert at transforming XML documents into PDF files, HTML documents, JPEG files--virtually anything your heart desires. As useful as XSLT is, though, most people have a difficult time learning its many peculiarities. And now Version 2.0, while elegant and powerful, has only added to the confusion. XSLT Cookbook, Second Edition wants to set the record straight. It helps you sharpen your programming skills and overall understanding of XSLT through a collection of detailed recipes. Each recipe breaks down a specific problem into manageable chunks, giving you an easy-to-grasp roadmap for integrating XSLT with your data and applications. No other XSLT book around employs this practical problem-solution-discussion format. In addition to offering code recipes for solving everyday problems with XSLT 1.0, this new edition shows you how to leverage the improvements found in XSLT 2.0, such as how to simplify the string manipulation and date/time conversion processes. The book also covers XPath 2.0, a critical companion standard, as well as topics ranging from basic transformations to complex sorting and linking. It even 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. Whether you're just starting out in XSLT or looking for advanced techniques, you'll find the level of information you need in XSLT Cookbook, Second Edition.
* Updated for XSLT 2.0, the latest revision * A clear, step-by-step introduction to XSLT for practical, everyday tasks * Suitable for complete beginners, even people who have never programmed before * Comprehensive, but focuses on techniques that are used time and time again; Uses a fun byut realistic case study throughout * Includes introductions to many of the most popular XML vocabularies Written by one of the leading experts on both XSLT and XML Schema; technical review by Michael Kay, the leading and well-known expert on XSLT.
XSLT is an essential tool for converting XML into other kinds of documents: HTML, PDF file, and many others. It's a critical technology for XML-based platforms such as Microsoft .NET, Sun Microsystems' Sun One, as well as for most web browsers and authoring tools. As useful as XSLT is, however, most people have a difficult time getting used to its peculiar characteristics. The ability to use advanced techniques depends on a clear and exact understanding of how XSLT templates work and interact. The XSLT 1.0 Pocket Reference from O'Reilly wants to make sure you achieve that level of understanding. With its concise approach, this handy pocket guide quickly gets you up to speed on XSLT 1.0 so you can covert XML like a seasoned pro. In addition to covering the basics of stylesheet structure, it also explains how to: use template rules create a result tree apply conditional processing transform multiple source documents employ number formatting Thanks to their convenient, quick-reference format, O'Reilly's Pocket References spare you from having to hunt through larger books for answers. They deliver just what you need to get the job done in a timely fashion. And the XSLT 1.0 Pocket Reference is no different--it's the ideal companion to have at your desk when you need an answer fast.
Designed for query writers who have some knowledge of XML basics, but not necessarily advanced knowledge of XML-related technologies, this book is ideal as both a tutorial and a reference. You?ll find background information for namespaces, schemas, built-in types, and regular expressions that are relevant to writing XML queries.
Author: Ian Williams
Publisher: John Wiley & Sons
Release Date: 2009-08-27
Provides the basic education in the XSLT processing model that developers have requested The growth of XML content management applications is boosting the demand for XSLT and XPath skills. This beginning Wrox book provides a firm foundation in the XSLT processing model, giving developers an important skillset. If, like many developers, you've had trouble grasping the XSLT processing model, you'll appreciate how this book focuses specifically on what you need to know. XSLT examples address the often-requested processing steps for typical XML document and data vocabularies. You will see exactly how XSLT relies on XPath, and how the processing model differs from most programming languages. A case study demonstrates how to build a static Web site using XSLT 2.0 elements and XPath 2.0 functions. Explains XSLT and XPath, covering both version 1.0 and 2.0 Covers using templates, control and branching, variable and parameters, sorting and grouping, and using modular stylesheets Also examines strings, dates, and numbers; working with multiple documents and text; generating identifiers; and testing and documentation All topics contain incremental code examples Addresses the much-requested processing steps for typical XML document and data vocabularies, including how the processing model differs from most programming languages Beginning XSLT and XPath: Transforming XML Documents and Data is the essential guide you need to thoroughly understand the important XSLT processing model. Note: CD-ROM/DVD and other supplementary materials are not included as part of eBook file.
Author: Michael Kay
Publisher: John Wiley & Sons
Release Date: 2011-01-06
Combining coverage of both XSLT 2.0 and XPath 2.0, this book is the definitive reference to the final recommendation status versions of both specifications. The authors start by covering the concepts in XSLT and XPath, and then delve into elements, operators, expressions with syntax, usage, and examples. Some of the specific topics covered include XSLT processing model, stylesheet structure, serialization, extensibility, and many others. In addition to online content that includes error codes, the book also has case studies you'll find applicable to your own challenges.
After years of anticipation and delay, the W3C finally released the XSLT 2.0 standard in January 2007. The revised edition of this classic book offers practical, real-world 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 is a critical language for converting XML documents into other formats, such as HTML code or a PDF file. With XSLT, you get 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. This book: Covers the XSLT basics, including simple stylesheets and methods for setting up transformation engines Walks you 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 you decide which version of XSLT is more appropriate for your project Includes profuse examples that complement both the tutorial and the reference material The new edition of XSLT has been updated thoroughly to explain XSLT 2.0's many dependencies, notably XML Schema and XPath 2.0. Want to find out how the 2.0 specification improves on the old? This book will explain.
Author: Andrew Whitmore
Release Date: 2013-01-13
Genre: XML (Document markup language)
Many texts that teach eXtensible Stylesheet Language Transformations (XSLT) assume that their readers are developers who already have a certain level of technical knowledge. As a result, code examples are presented with minimal explanation and the focus of the material tends to target areas that are most appealing to experienced practitioners. When students read these texts, they may be left on their own to interpret the code and they may be unable to generalize beyond the specific examples due to an incomplete explanation of the material. This text is oriented toward students at the undergraduate and graduate levels who seek an introduction to XSLT that makes limited assumptions about technical background and covers a set of topics that are focused on the needs of students. Written by an author with years of experience teaching XML and XSLT to undergraduate and graduate students, this text presents intuitive examples with in-depth explanations coupled with insights and tips that mitigate typical problems that occur when working with XSLT.
No matter how flexible and convenient digital information has become, we haven't done away with the need to see information in print. Extensible Style Language-Formatting Objects, or XSL-FO, is a set of tools developers and web designers use to describe page printouts of their XML (including XHTML) documents. If you need to produce high quality printed material from your XML documents, then XSL-FO provides the bridge.XSL-FO is one of the few books to go beyond a basic introduction to the technology. While many books touch on XSL-FO in their treatment of XSLT, this book offers in-depth coverage of XSL-FO's features and strengths. Author Dave Pawson is well known in the XSLT and XSL-FO communities, and maintains the XSLT FAQ. An online version of this book has helped many developers master this technology. XSL-FO is the first time this reference is available in print.The first part of the book provides an overview of the technology and introduces the XSL-FO vocabulary. The author discusses how to choose among today's implementations, explains how to describe pages, and shows you what is going on in the processor in terms of layout. You'll learn about the basics of formatting and layout as well as readability.The second part focuses on smaller pieces: blocks, inline structures, graphics, color and character level formatting, concluding by showing how to integrate these parts into a coherent whole. XSL-FO also explores organizational aspects you'll need to consider?how to design your stylesheets strategically rather than letting them evolve on their own.XSL-FO is more than just a guide to the technology; the book teaches you how to think about the formatting of your documents and guides you through the questions you'll need to ask to ensure that your printed documents meet the same high standards as your computer-generated content. Written for experienced XML developers and web designers, no other book contains as much useful information on this practical technology.
XSLT 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, or a number of other things. You write an XSLT stylesheet to define the rules for transforming an XML document, and the XSLT processor does the work. As useful as XSLT is, its peculiar characteristics make it a difficult language in which to get started. In fact, newcomers are often a little dazed on first contact. Learning XSLT offers a hands-on introduction to help them get up to speed with XSLT quickly. The book will help web developers and designers understand this powerful but often mystifying template-driven and functional-styled language, getting them over the many differences between XSLT and the more conventional programming languages. Learning XSLT moves smoothly from the simple to complex, illustrating all aspects of XSLT 1.0 through step-by-step examples that you'll practice as you work through the book. Thorough in its coverage of the language, the book makes few assumptions about what you may already know. You'll learn about XSLT's template-based syntax, how XSLT templates work with each other, and gain an understanding of XSLT variables. Learning XSLT also explains how the XML Path Language (XPath) is used by XSLT and provides a glimpse of what the future holds for XSLT 2.0 and XPath 2.0. The ability to transform one XML vocabulary to another is fundamental to exploiting the power of XML. Learning XSLT is a carefully paced, example-rich introduction to XSLT that will have you understanding and using XSLT on your own in no time.
Author: Richard Wagner
Publisher: John Wiley & Sons
Release Date: 2011-05-04
Restructuring information in an XML document so that it works in other formats used to be a time-consuming ordeal involving lots of blood, sweat, and tears. Now XSLT (Extensible Stylesheet Language Transformations) makes the process nearly instantaneous. Just provide an example of the kind of information you’d like to see, and XSLT does the rest. With XSLT you can effortlessly transform XML documents into virtually any kind of output, including other XML documents and HTML pages. But mastering XSLT can be tricky, especially if you’ve never worked with XML or HTML; and most books on the subject are written for people who have. Here comes XSLT For Dummies to the rescue! XSLT For Dummies is your ticket to quickly mastering XSLT—no matter what your prior programming experience. Writing in easygoing, plain English, XML pro Richard Wagner provides expert advice, step-by-step guidance, and tons of crystal-clear examples to help you harness the power of XSLT to transform documen ts. In no time you’ll: Understand how XSLT works with XSL and XPath Experiment with templates, stylesheets, and expressions Perform HTML transformations Master XPath data types and functions Combine XSLT stylesheets Explore cool XSLT programming tricks XSLT For Dummies works from the ground up, starting with a practical introduction of the “X-Team”—XML, XSL, XSLT, and X-Path—and instructions on how to write a XSLT stylesheet. From there it quickly moves onward and upward through the whole range of important XSLT topics, including: Transforming with stylesheets Understanding and using template rules Using XPath to locate nodes in XML documents Combining XSLT stylesheets and adding processing instructions Debugging XSLT transformations Ten XSLT processors available online It doesn’t matter whether you’re a babe in the woods who can’t tell a “tag” from an element, or you’re an old pro at creating XML documents, XSLT For Dummies offers you a fun, easy way to explore and take full advantage of Extensible Stylesheet Language Transformations.
Extensible Stylesheet Language Transformations, along with the XML Path Language, give you the power to transform XML documents into HTML documents, or to other XML documents that you can use in Web-based applications. But how do you implement XSLT in the real world? This book provides the answers. Covering everything from reformatting numbers to creating dynamic XSLT applications, XSLT expert Jeni Tennison delivers a wealth of ready-to-use utility templates and practical XSLT solutions -- everything you need to jump-start XSLT development. With XSLT and XPath on the Edge, Unlimited Edition, you'll: * Take advantage of utility templates for searching and replacing strings, calculating minimums, and more * Build your own recursive templates or use simple XPaths * Discover ready-made solutions for filtering, numbering, grouping, and other transformations * Understand the building blocks of XSLT applications * Separate style from format and break up your stylesheet into functional modules that are easier to maintain and reuse * Build dynamic applications that use client-side processing with MSXML or server-side processing with Cocoon * Fine-tune stylesheets to work more efficiently and deliver exactly the output you're looking for * Harness the power of the XSLT extensions available with MSXML, Saxon, and Xalan With this Unlimited Edition, owners of the book can download all-new content from the Web and access a searchable version of the book online.