Always Learning

XSLT: Working with XML and HTML
Khun Yee Fung

ISBN-10: 0201711036
ISBN-13:  9780201711035

Publisher:  Addison-Wesley Professional
Copyright:  2001
Format:  Paper Bound w/CD-ROM; 464 pp
Published:  12/20/2000
Status: Out of Print


We're sorry, this product is no longer available.
Please contact your Pearson rep if you are using this product and need instructor resources.


Print this content

In this section:


Table of Contents

PART I.

1: Introduction.

What Is XML?

The Importance of Extensive XML Documents.

The Difference between XML and HTML.

Presenting XML Documents.

The Role of XSLT.

XSLT in the HTML Publishing Pipeline.

Summary.

Looking Ahead.

2: XML.

URI.

The Basic XML Document Structure.

Valid Names in XML.

Elements.

Character Data.

Entities.

Processing Instructions.

Comments.

The Root of an XML Document.

Summary.

Looking Ahead.

3: Introduction to XSLT.

The Meeting Room Booking Documents.

Designing XSLT Documents.

Summary.

Looking Ahead.

PART II

4: XML Documents as Trees.

Tree Terminology.

Converting an XML Document to a Tree.

Traversing a Tree.

Document Order.

Distinctness of Nodes in a Tree.

Summary.

Looking Ahead.

5: Paths.

Paths and Expressions.

Location Paths.

Combining Steps.

Data Types and Operations.

Names of Nodes.

Examples of XPath Expressions.

Summary.

Looking Ahead.

6: Transformation.

Visualizing Transformation.

Literal Result Elements.

A Simple Template with an xsl:apply-templates Element.

Nested xsl:apply-templates Elements.

Patterns.

Matching Template.

Template Priority.

Current Node and Current Node List Versus Context Node and Context.

Another Look at XSLT Documents.

Summary.

Looking Ahead.

7: Control.

The xsl:if Element.

The for-each Element.

Looping with Named Templates.

Sorting.

Sending Messages to the Console.

Parameters Outside the XSLT Document.

Summary.

Looking Ahead.

8: Constructing the Result Tree.

The xsl:output Element for HTML.

Including Literal Result Elements.

Constructing Elements.

Inserting Comments.

Inserting Processing Instructions.

The xsl:text Element.

The xsl:value-of Element.

Variables.

Result Tree Fragments.

Whitespace-Only Text Nodes.

Summary.

Looking Ahead.

9: Combining Templates.

The xsl:include Element.

The xsl:import Element.

The xsl:apply-imports Element.

Summary.

Looking Ahead.

10: Extensions.

Declaring Extension Functions and Extension Elements.

Using Extension Functions.

Using Extension Elements.

Checking Availability.

Summary.

Looking Ahead.

PART III

11: Idioms and Tips.

Table Generation.

Character Replacement.

Using xsl:include for Project Reuse.

Using xsl:import for Reuse from Different Projects.

Using the mode Attribute to Organize Templates.

The xsl:include and xsl:import Elements.

Using a Global Parameter to Seed Configuration.

Absolute Paths and Template Patterns.

Steps for Template Patterns.

Using Simple Predicates in Template Patterns.

Using translate()to Convert Cases.

Short Templates.

Identifying Your XML Data.

Using xsl:apply-templates.

One Page at a Time.

Mockup, Generalize, Write.

Working Directory.

Inside-Out XSLT Template Application.

Removing an Element.

Using XML Configuration Files.

Using Lineup Files.

One Subtree at a Time.

Using xsl:copy-of.

Overriding Default Templates.

Avoiding the Descendant Axis.

Reducing the Size of Node-Sets.

Avoiding Multiple Predicates.

Summary.

Looking Ahead.

12: A Case Study.

The Web Site.

Designing the XML Files.

Organizing the XSLT Documents.

Designing the XSLT Templates.

Summary.

Looking Ahead.

PART IV

13: Transforming to XML and Text.

XHTML.

XSL.

SVG.

Transforming an XML Document to Text.

Summary.

Appendix A: Tools and Resources.

XML Tools.

Resources.

XSLT Web Sites and Mailing Lists.

Where to Find the Examples.

Appendix B: Character Sets and Encoding Schemes.

Appendix C: XSLT and XPath Reference.

XSLT Elements.

XSLT and XPath Functions.

Suggested Resources.

Index.



Back to top

Print this content

In this section:


Author Bios

Khun Yee Fung is a senior software architect at ExtendMedia, Inc., an interactive TV and Web site content designer and provider. He has trained HTML developers to become XSLT developers, and was involved in the architecture and design of a Web site publishing system that uses XML and XSLT.

0201711036AB04062001


Backcover Copy

Extensible Stylesheet Language Transformation (XSLT) is a versatile language used to transform XML documents into other formats, such as HTML for display on the Web, WML for display on WAP devices, or plain text. With the emergence of XML as the standard for information exchange, XSLT has become an essential language for all Web developers. XSLT: Working with XML and HTML is a comprehensive tutorial and reference to XSLT, covering the recently finalized World Wide Web Consortium (W3C) standard. This book will help you master XSLT features and XPath expressions. While it's focus is on using XSLT to transform XML to HTML, the fundamentals you learn can be applied to all other kinds of XSLT transformations. Looking deeper into the language, this book explains XSLT's tree-based view of the XML document. It covers paths, the transformation process, the XSLT control elements, how the output document is constructed, and how to use XSLT extensions. Specific topics discussed include:

  • XML and XSLT fundamentals
  • Converting an XML document to a tree
  • XPath expressions and context node
  • Matching templates and current node
  • Control elements in XSLT
  • Constructing the result tree and output document
  • XSLT idioms and tips for effective use
A complete case study using XML and XSLT to publish a Web site illustrates all the major concepts and techniques in the book. In addition, the CD-ROM provides the code for all the examples in the books, as well as the case study.

0201711036B07092001

Back to top

Log in to the Instructor Resource Center

Login name: 

  Password: 

Forgot login/password?  |  Need to redeem an access code?

        

Instructor Resource Center File Download

This work is protected by local and international copyright laws and is provided solely for the use of instructors in teaching their courses and assessing student learning. Dissemination or sale of any part of this work (including on the World Wide Web) will destroy the integrity of the work and is not permitted. The work and materials from this site should never be made available to students except by instructors using the accompanying text in their classes. All recipients of this work are expected to abide by these restrictions and to honor the intended pedagogical purposes and the needs of other instructors who rely on these materials.

Cancel     I accept, proceed with download

Print this content

Pearson Higher Education offers special pricing when you choose to package your text with other student resources. If you're interested in creating a cost-saving package for your students contact your Pearson Higher Education representative.

Back to top