XSLT For Dummies
eBook - ePub

XSLT For Dummies

Richard Wagner

  1. English
  2. ePUB (mobile friendly)
  3. Available on iOS & Android
eBook - ePub

XSLT For Dummies

Richard Wagner

Book details
Book preview
Table of contents
Citations

About This Book

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.

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is XSLT For Dummies an online PDF/ePUB?
Yes, you can access XSLT For Dummies by Richard Wagner in PDF and/or ePUB format, as well as other popular books in Informatica & Linguaggi di programmazione. We have over one million books available in our catalogue for you to explore.

Information

Publisher
For Dummies
Year
2011
ISBN
9781118085394
Part I

Getting Started with XSLT

In this part . . .
**IN a DROPCAP**
Y ou watched the X-Files and then you saw X-Men on the big screen, but these were only warm-ups for the real deal — the X-Team. In this part, you find out all about the X-Team members, including XML, XSL, XSLT, and XPath, and how they work together. You also get your feet wet by transforming your first XML document using XSLT.
Chapter 1

Introducing the X-Team

In This Chapter

bullet
Finding out about XML, XSL, XSLT, and XPath
bullet
Knowing the difference between XSL and XSLT
bullet
Looking at the X-Team from an HTML perspective
A s a sports fan, I enjoy watching all kinds of team sports, whether football, basketball, baseball, or an Olympic team competition. I’ve noticed that regardless of the sport, great teams have two things in common. First, they have very talented individuals on them. Second, they function well as a team; I find hardly anything more thrilling in sports than seeing a squad of talented athletes working together cohesively. (Of course, it goes without saying that the most exciting part of sports is the “I’m going to Disneyworld” commercials!)
Although this book focuses on eXtensible Stylesheet Language Transformations, or XSLT, you’ll quickly discover that XSLT is an important component of a closely related set of technologies that I affectionately call the X-Team. This “Dream X-Team” consists of: XML, XSL, XSLT, and XPath. (For the techies out there, that’s shorthand for eXtensible Markup Language, eXtensible Stylesheet Language, XSL Transformations, and XML Path Language.) Each of these technologies is powerful, but each gets its true strength through interrelationships. So, although I concentrate much of the attention in this book on XSLT, never think of it as something independent of its teammates.
As you start your XSLT journey, I begin by introducing you to the X-Team members, each of which has a separate but intertwined responsibility.

XML: Storing Your Data

The original member of the X-Team is eXtensible Markup Language (XML), the granddaddy of them all. All other X-Team members are designed to work with or act upon XML. A relatively recent innovation, XML was conceived primarily by Jon Bosak as a way to make working with information delivered over the Web easier. Then in 1998, XML was standardized by the World Wide Web Consortium (W3C), the international standards body for the Web.
Since its beginnings, the Web has used HyperText Markup Language (HTML) to display content. HTML documents are stored on Web servers and then sent on demand to a Web browser, such as Microsoft Internet Explorer or Netscape Navigator. The browser then displays the HTML as a Web page. Figure 1-1 illustrates this process.
Figure 1-1: Displaying information over the Web.
Figure 1-1: Displaying information over the Web.

HTML comes up short

HTML has become so wildly popular largely because it’s very easy to learn and work with; heck, even my 7-year-old can create a Web page using Microsoft FrontPage, and my 9-year-old can write HTML by hand. The markup language was originally designed purely as a way to format and lay out information. However, because people have wanted to use the Web for nearly every task under the sun, HTML has been forced to do far more than was ever intended.
Consider a familiar scenario: A company wants to put information stored in a database onto its Web site. A sampling of its data might look something like Table 1-1.
Table 1-1
To present t...

Table of contents

Citation styles for XSLT For Dummies

APA 6 Citation

Wagner, R. (2011). XSLT For Dummies (1st ed.). Wiley. Retrieved from https://www.perlego.com/book/1005997/xslt-for-dummies-pdf (Original work published 2011)

Chicago Citation

Wagner, Richard. (2011) 2011. XSLT For Dummies. 1st ed. Wiley. https://www.perlego.com/book/1005997/xslt-for-dummies-pdf.

Harvard Citation

Wagner, R. (2011) XSLT For Dummies. 1st edn. Wiley. Available at: https://www.perlego.com/book/1005997/xslt-for-dummies-pdf (Accessed: 14 October 2022).

MLA 7 Citation

Wagner, Richard. XSLT For Dummies. 1st ed. Wiley, 2011. Web. 14 Oct. 2022.