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 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.
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.
The book covers XSLT and Xpath (as a part of XSLT), as these topics have everything to do with processing XML. It will also cover XML from an XSLT processing and design point of view. Other XML technologies will not be discussed as superset of XSLT, most notably XSL. XSL Formatting Objects alone is enough material for an entire book. Apart from that, XSLT and Xpath form the processing/programming section of the entire XSL specification. This book presents an overview of XSLT and guides readers through transforming their first XML data. In this book you will also learn: Selecting Data-Stylesheets and Xpath Basics; Inserting text and elements in output; Copying elements from the source and inserting text; Conditional processing basics and expressions; Modularizing stylesheets; Understanding, creating, and using templates; Controlling output, as well as creating more advanced output; Using multi-file stylesheets, variables, and parameters; Working with numbers, strings, multiple XML sources, and namespaces; Selecting data based upon keys; Recursion; Creating computational stylesheets; Working with parses; Designing XML and XSLT applications; Extending XSLT.
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.
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.
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.
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: Eric van der Vlist
Publisher: "O'Reilly Media, Inc."
Release Date: 2002-06-25
If you need to create or use formal descriptions of XML vocabularies, the W3C's XML Schema offers a powerful set of tools for defining acceptable document structures and content. An alternative to DTDs as the way to describe and validate data in an XML environment, XML Schema enables developers to create precise descriptions with a richer set of datatypes?such as booleans, numbers, currencies, dates and times?that are essential for today?s applications.Schemas are powerful, but that power comes with substantial complexity. This concise book explains the ins and outs of XML Schema, including design choices, best practices, and limitations. Particularly valuable are discussions of how the type structures fit with existing database and object-oriented program contexts. With XML Schema, you can define acceptable content models and annotate those models with additional type information, making them more readily bound to programs and objects. Schemas combine the easy interchange of text-based XML with the more stringent requirements of data exchange, and make it easier to validate documents based on namespaces.You?ll find plenty of examples in this book that demonstrate the details necessary for precise vocabulary definitions. Topics include: Foundations of XML Schema syntax Flat, "russian-doll", and other schema approaches Working with simple and complex types in a variety of contexts The built-in datatypes provided by XML Schema Using facets to extend datatypes, including regular expression-based patterns Using keys and uniqueness rules to limit how and where information may appear Creating extensible schemas and managing extensibility Documenting schemas and extending XML Schema capabilities through annotations In addition to the explanatory content, XML Schemaprovides a complete reference to all parts of both the XML Schema Structures and XML Schema Datatypes specifications, as well as a glossary. Appendices explore the relationships between XML Schema and other tools for describing document structures, including DTDs, RELAX NG, and Schematron, as well as work in progress at the W3C to more tightly integrate XML Schema with existing specifications.No matter how you intend to use XML Schema - for data structures or document structures, for standalone documents or part of SOAP transactions, for documentation, validation, or data binding ? all the foundations you need are outlined in XML Schema.
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.
Author: Erik T. Ray
Publisher: "O'Reilly Media, Inc."
Release Date: 2003-09-22
This second edition of the bestselling Learning XML provides web developers with a concise but grounded understanding of XML (the Extensible Markup Language) and its potential-- not just a whirlwind tour of XML.The author explains the important and relevant XML technologies and their capabilities clearly and succinctly with plenty of real-life projects and useful examples. He outlines the elements of markup--demystifying concepts such as attributes, entities, and namespaces--and provides enough depth and examples to get started. Learning XML is a reliable source for anyone who needs to know XML, but doesn't want to waste time wading through hundreds of web sites or 800 pages of bloated text.For writers producing XML documents, this book clarifies files and the process of creating them with the appropriate structure and format. Designers will learn what parts of XML are most helpful to their team and will get started on creating Document Type Definitions. For programmers, the book makes syntax and structures clear. Learning XML also discusses the stylesheets needed for viewing documents in the next generation of browsers, databases, and other devices.Learning XML illustrates the core XML concepts and language syntax, in addition to important related tools such as the CSS and XSL styling languages and the XLink and XPointer specifications for creating rich link structures. It includes information about three schema languages for validation: W3C Schema, Schematron, and RELAX-NG, which are gaining widespread support from people who need to validate documents but aren't satisfied with DTDs. Also new in this edition is a chapter on XSL-FO, a powerful formatting language for XML. If you need to wade through the acronym soup of XML and start to really use this powerful tool, Learning XML, will give you the roadmap you need.
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.