My Account
View Cart
Home
Community
Books & Videos
Safari Books Online
Conferences
Training
School of Technology
About
Complete List
Bestsellers
New Releases
Rough Cuts
Upcoming Titles
Ebooks
By Publisher
By Series
Out of Print
Order Info
Search
Search Tips
XSLT Cookbook
Solutions and Examples for XML and XSLT Developers
By
Sal Mangano
December 2002
Pages: 670
|
Table of Contents
|
Index
|
Sample Chapter
|
Colophon
Table of Contents
Chapter 1
Strings
Testing if a String Ends with Another String
Finding the Position of a Substring
Removing Specific Characters from a String
Finding Substrings from the End of a String
Duplicating a String N Times
Reversing a String
Replacing Text
Converting Case
Tokenizing a String
Making Do Without Regular Expressions
Using the EXSLT String Extensions
Chapter 2
Numbers and Math
Formatting Numbers
Rounding Numbers to a Specified Precision
Converting from Roman Numerals to Numbers
Converting from One Base to Another
Implementing Common Math Functions
Computing Sums and Products
Finding Minimums and Maximums
Computing Statistical Functions
Computing Combinatorial Functions
Testing Bits
Chapter 3
Dates and Times
Introduction
Calculating the Day of the Week
Determining the Last Day of the Month
Getting Names for Days and Months
Calculating Julian and Absolute Day Numbers from a Specified Date
Calculating the Week Number for a Specified Date
Working with the Julian Calendar
Working with the ISO Calendar
Working with the Islamic Calendar
Working with the Hebrew Calendar
Formatting Dates and Times
Determining Secular and Religious Holidays
Chapter 4
Selecting and Traversing
Optimizing Node Selections
Determining if Two Nodes Are the Same
Ignoring Duplicate Elements
Selecting All but a Specific Element
Performing a Preorder Traversal
Performing a Postorder Traversal
Performing an In-Order Traversal
Performing a Level-Order Traversal
Processing Nodes by Position
Chapter 5
XML to Text
Dealing with Whitespace
Exporting XML to Delimited Data
Creating a Columnar Report
Displaying a Hierarchy
Numbering Textual Output
Wrapping Text to a Specified Width and Alignment
Chapter 6
XML to XML
Converting Attributes to Elements
Converting Elements to Attributes
Renaming Elements or Attributes
Merging Documents with Identical Schema
Merging Documents with Unlike Schema
Splitting Documents
Flattening an XML Hierarchy
Deepening an XML Hierarchy
Reorganizing an XML Hierarchy
Chapter 7
Querying XML
Performing Set Operations on Node Sets
Performing Set Operations on Node Sets Using Value Semantics
Determining Set Equality by Value
Performing Structure-Preserving Queries
Joins
Implementing the W3C XML Query-Use Cases in XSLT
Chapter 8
XML to HTML
Using XSLT as a Styling Language
Creating Hyperlinked Documents
Creating HTML Tables
Creating Frames
Creating Data-Driven Stylesheets
Creating a Self-Contained HTML Transformation
Populating a Form
Chapter 9
XML to SVG
Transforming an Existing Boilerplate SVG
Creating Reusable SVG Generation Utilities for Graphs and Charts
Creating a Tree Diagram
Creating Interactive SVG-Enabled Web Pages
Chapter 10
Code Generation
Generating Constant Definitions
Generating Switching Code
Generating Message-Handling Stub Code
Generating Data Wrappers
Generating Pretty Printers
Generating a Test Data-Entry Web Client
Generating Test-Entry Web CGI
Generating Code from UML Models via XMI
Generating XSLT from XSLT
Chapter 11
Vertical XSLT Application Recipes
Converting Visio VDX Documents to SVG
Working with Excel XML Spreadsheets
Generating XTM Topic Maps from UML Models via XMI
Generating Web Sites from XTM Topic Maps
Serving SOAP Documentation from WSDL
Chapter 12
Extending and Embedding XSLT
Saxon Extension Functions
Saxon Extension Elements
Xalan Java 2 Extension Functions
Java Extension Function Using the Class Format Namespace
Java Extension Function Using the Package Format Namespace
Java Extension Function Using the Java Format Namespace
Scripting Extension Function Using Inline Script Code
Xalan Java 2 Extension Elements
Java Extension Element
Scripting Extension Elements
MSXML Extension Functions
Using Saxon's and Xalan's Native Extensions
Extending XSLT with JavaScript
Adding Extension Functions Using Java
Adding Extension Elements Using Java
Using XSLT from Perl
Using XSLT from Java
Chapter 13
Testing and Debugging
Using xsl:message Effectively
Tracing the Flow of Your Stylesheet Through Its Input Document
Automating the Insertion of Debug Output
Including Embedded Unit Test Data in Utility Stylesheets
Structuring Unit Tests
Testing Boundary and Error Conditions
Chapter 14
Generic and Functional Programming
Introduction
Creating Polymorphic XSLT
Creating Generic Element Aggregation Functions
Creating Generic Bounded Aggregation Functions
Creating Generic Mapping Functions
Creating Generic Node-Set Generators
Colophon
Return to
XSLT Cookbook