Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Buy Now $24.99
Standard view
Full view
of .
Save to My Library
Look up keyword or section
Like this
5Activity

Table Of Contents

Preface
Chapter 1
CHAPTER 1
Transforming Documents with XSLT
How XSLT Works
</stylesheet>
The stylesheet element
The XSLT namespace
The template element
Using Client-Side XSLT in a Browser
The XML Stylesheet Processing Instruction
XSLT Support in Browsers
Attributes and pseudoattributes
Using apply-templates
Chapter 2
CHAPTER 2
Building New Documents with XSLT
Outputting Text
The disable-output-escaping attribute
Literal Result Elements
XHTML Literal Result Elements
Attribute value templates
Applying namespaces
Using the Element Called element
The namespace attribute
Adding Attributes
Reusing a Set of Attributes
Chaining attribute sets
Outputting Comments
Outputting Processing Instructions
Outputting XML
The standalone declaration
Controlling Document Type Declarations
Validation with transformation
Outputting HTML
Using a QName Output Method
Media Types
Chapter 4
CHAPTER 4
Traversing the Tree
The XPath Data Model
Axes
Unabbreviated Syntax
Name and Node Tests
Doing the Math with Expressions
Chapter 5
CHAPTER 5
XPath and XSLT Functions
Boolean Functions
Node-Set Functions
The id() Function
Number Functions
String Functions
Copying Nodes
The copy Element
The copy-of Element
Copying Nodes from Two Documents
Chapter 7
CHAPTER 7
Using Variables and Parameters
Defining Variables and Parameters
Using result tree fragments to define variables
Using Variables
Using Parameters
Invoking Templates with Parameters
Using Result Tree Fragments
Sorting Things Out
Simple Ascending Sort
Reversing the Sort
By the Numbers
Multiple Sorts
The lang and case-order Attributes
Chapter 9
CHAPTER 9
Numbering Lists
Numbered Lists
Alphabetical Lists
Roman Numerals
Inserting an Individual Formatted Value
Numbering Levels
Counting on Multiple Levels
Counting on Any Level
The from Attribute
The lang and letter-value Attributes
More Help with Formatted Numbers
Chapter 10
CHAPTER 10
Templates
Template Priority
The priority Attribute
Calling a Named Template
Using Templates with Parameters
Modes
Built-in Template Rules
Chapter 11
CHAPTER 11
Using Keys
A Simple Key
More Than One Key
Using a Parameter with Keys
Cross-Referencing with Keys
Grouping with Keys
Conditional Processing
The if Element
The choose and when Elements
Chapter 13
CHAPTER 13
Working with Multiple Documents
Including Stylesheets
Importing Stylesheets
An Embedded Stylesheet
Aliasing a Namespace
Excluding Namespaces
Chapter 15
CHAPTER 15
Extensions
Xalan, Saxon, and EXSLT Extensions
Using a Saxon Extension Attribute
Result Tree Fragment to Node-Set
Using EXSLT
Fallback Behavior
Multiple Result Trees
Using Regular Expressions
The analyze-string Element
Grouping in XSLT 2.0
Extension Functions
Chapter 17
CHAPTER 17
Running an XSLT Processor from Java
The Moxie Source Code
Writing an XSLT Processor with C#
Chapter 18
CHAPTER 18
Parting Words
The Ox Documentation Tool
Signing Off
Installing and Running Java
Using the Classpath
Setting the path variable for Xalan on Windows
Setting the path variable for Xalan on a Unix platform
Glossary
Attribute-list declaration
Current node list
Document type declaration
Document type definition
See “Document type definition.”
Element-type declaration
Embedded stylesheet
EXSLT
Extensible Hypertext Markup Language
Extensible Markup Language (XML)
Extensible Stylesheet Language (XSL)
Global variable
Import precedence
Local variable
Markup declaration
Parent-child relationship
Processing instruction
Qualified name (QName)
Result tree fragment
See “Result tree fragment.”
Tree
Well-formed XML
World Wide Web Consortium (W3C)
XML declaration
XML Path Language (XPath)
Index
0 of .
Results for:
No results containing your search query
P. 1
Learning XSLT

Learning XSLT

Ratings:

3.3

(15)
|Views: 567 |Likes:

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.

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.

More info:

Publish date: Nov 14, 2003
Added to Scribd: May 16, 2009
Copyright:Traditional Copyright: All rights reservedISBN:9780596516901
List Price: $24.99 Buy Now

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
See more
See less

07/31/2014

370

9780596516901

$24.99

USD

pdf

original

You're Reading a Free Preview
Pages 15 to 54 are not shown in this preview.
You're Reading a Free Preview
Pages 69 to 95 are not shown in this preview.
You're Reading a Free Preview
Pages 110 to 246 are not shown in this preview.
You're Reading a Free Preview
Pages 261 to 281 are not shown in this preview.
You're Reading a Free Preview
Pages 296 to 370 are not shown in this preview.

Activity (5)

You've already reviewed this. Edit your review.
cmc_22 reviewed this
Rated 4/5
Had someone told me that I would enjoy a book about XML, I would have laughed in their face, and probably followed it up with a rant about XML’s inherent evil.But work is in the process of getting a CMS that uses XSL stylesheets to transform content, and, much to my surprise, I’m starting to look forward to it. Some issues I had been having with our current system seem like they may be solvable with XML and XSL, and, best of all, once the stylesheets are written, I probably won’t have to update the data!Part of the reason I’m enjoying the book, I think, is that it’s written in a “Try this, see the results. Cool, eh? Now try this!” style that’s a refreshing change from many other tech books that read more like reference manuals than tutorials (cf., Learning Python, which is pretty awful).
Jose Luis Choy liked this
1 thousand reads
1 hundred reads
ratnaish007 liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->