Flylib.com
XSLT Cookbook: Solutions and Examples for XML and XSLT Developers, 2nd Edition
XSLT Cookbook: Solutions and Examples for XML and XSLT Developers, 2nd Edition
ISBN: 0596009747
EAN: 2147483647
Year: 2003
Pages: 208
Authors:
Sal Mangano
BUY ON AMAZON
XSLT Cookbook, 2nd Edition
Table of Contents
Copyright
Preface
Structure of This Book
Conventions Used in This Book
Using Code Examples
Safari Enabled
How to Contact Us
Acknowledgments
Chapter 1. XPath
Introduction
Recipe1.1.Effectively Using Axes
Recipe1.2.Filtering Nodes
Recipe1.3.Working with Sequences
Recipe1.4.Shrinking Conditional Code with If Expressions
Recipe1.5.Eliminating Recursion with for Expressions
Recipe1.6.Taming Complex Logic Using Quantifiers
Recipe1.7.Using Set Operations
Recipe1.8.Using Node Comparisons
Recipe1.9.Coping with XPath 2.0 s Extended Type System
Recipe1.10.Exploiting XPath 2.0 s Extended Type System
Chapter 2. Strings
Introduction
Recipe2.1.Testing If a String Ends with Another String
Recipe2.2.Finding the Position of a Substring
Recipe2.3.Removing Specific Characters from a String
Recipe2.4.Finding Substrings from the End of a String
Recipe2.5.Duplicating a String N Times
Recipe2.6.Reversing a String
Recipe2.7.Replacing Text
Recipe2.8.Converting Case
Recipe2.9.Tokenizing a String
Recipe2.10.Making Do Without Regular Expressions
Recipe2.11.Exploiting Regular Expressions
Recipe2.12.Using the EXSLT String Extensions
Chapter 3. Numbers and Math
Introduction
Recipe3.1.Formatting Numbers
Recipe3.2.Rounding Numbers to a Specified Precision
Recipe3.3.Converting from Roman Numerals to Numbers
Recipe3.4.Converting from One Base to Another
Recipe3.5.Implementing Common Math Functions
Recipe3.6.Computing Sums and Products
Recipe3.7.Finding Minimums and Maximums
Recipe3.8.Computing Statistical Functions
Recipe3.9.Computing Combinatorial Functions
Recipe3.10.Testing Bits
Chapter 4. Dates and Times
Introduction
Recipe4.1.Calculating the Day of the Week
Recipe4.2.Determining the Last Day of the Month
Recipe4.3.Getting Names for Days and Months
Recipe4.4.Calculating Julian and Absolute Day Numbers from a Specified Date
Recipe4.5.Calculating the Week Number for aSpecified Date
Recipe4.6.Working with the Julian Calendar
Recipe4.7.Working with the ISO Calendar
Recipe4.8.Working with the Islamic Calendar
Recipe4.9.Working with the Hebrew Calendar
Recipe4.10.Formatting Dates and Times
Recipe4.11.Determining Secular and Religious Holidays
Chapter 5. Selecting and Traversing
Introduction
Recipe5.1.Ignoring Duplicate Elements
Recipe5.2.Selecting All but a Specific Element
Recipe5.3.Selecting Nodes by Context
Recipe5.4.Performing a Preorder Traversal
Recipe5.5.Performing a Postorder Traversal
Recipe5.6.Performing an In-Order Traversal
Recipe5.7.Performing a Level-Order Traversal
Recipe5.8.Processing Nodes by Position
Chapter 6. Exploiting XSLT 2.0
Introduction
Recipe6.1.Convert Simple Named Templates to XSLT Functions
Recipe6.2.Prefer for-each-group over Muenchian Method of Grouping
Recipe6.3.Modularizing and Modes
Recipe6.4.Using Types for Safety and Precision
Recipe6.5.Avoiding 1.0 to 2.0 Porting Pitfalls
Recipe6.6.Emulating Object-Oriented Reuse and Design Patterns
Recipe6.7.Processing Unstructured Text with Regular Expressions
Recipe6.8.Solving Difficult Serialization Problems with Character Maps
Recipe6.9.Outputting Multiple Documents
Recipe6.10.Handling String Literals Containing Quote Characters
Recipe6.11.Understanding the New Capabilities of Old XSLT 1.0 Features
Chapter 7. XML to Text
Introduction
Recipe7.1.Dealing with Whitespace
Recipe7.2.Exporting XML to Delimited Data
Recipe7.3.Creating a Columnar Report
Recipe7.4.Displaying a Hierarchy
Recipe7.5.Numbering Textual Output
Recipe7.6.Wrapping Text to a Specified Width and Alignment
Chapter 8. XML to XML
Introduction
Recipe8.1.Converting Attributes to Elements
Recipe8.2.Converting Elements to Attributes
Recipe8.3.Renaming Elements or Attributes
Recipe8.4.Merging Documents with Identical Schema
Recipe8.5.Merging Documents with Unlike Schema
Recipe8.6.Splitting Documents
Recipe8.7.Flattening an XML Hierarchy
Recipe8.8.Deepening an XML Hierarchy
Recipe8.9.Reorganizing an XML Hierarchy
Chapter 9. Querying XML
Introduction
Recipe9.1.Performing Set Operations on Node Sets
Recipe9.2.Performing Set Operations on Node Sets Using Value Semantics
Recipe9.3.Determining Set Equality by Value
Recipe9.4.Performing Structure-Preserving Queries
Recipe9.5.Joins
Recipe9.6.Implementing the W3C XML Query-UseCases in XSLT
Chapter 10. XML to HTML
Introduction
Recipe10.1.Using XSLT as a Styling Language
Recipe10.2.Creating Hyperlinked Documents
Recipe10.3.Creating HTML Tables
Recipe10.4.Creating Frames
Recipe10.5.Creating Data-Driven Stylesheets
Recipe10.6.Creating a Self-Contained HTML Transformation
Recipe10.7.Populating a Form
Chapter 11. XML to SVG
Introduction
Recipe11.1.Transforming an Existing Boilerplate SVG
Recipe11.2.Creating Reusable SVG Generation Utilities for Graphs and Charts
Recipe11.3.Creating a Tree Diagram
Recipe11.4.Creating Interactive SVG-Enabled Web Pages
Chapter 12. Code Generation
Introduction
Recipe12.1.Generating Constant Definitions
Recipe12.2.Generating Switching Code
Recipe12.3.Generating Message-Handling Stub Code
Recipe12.4.Generating Data Wrappers
Recipe12.5.Generating Pretty Printers
Recipe12.6.Generating a Test Data-Entry Web Client
Recipe12.7.Generating Test-Entry Web CGI
Recipe12.8.Generating Code from UML Models via XMI
Recipe12.9.Generating XSLT from XSLT
Chapter 13. Vertical XSLT Application Recipes
Introduction
Recipe13.1.Converting Visio VDX Documents to SVG
Recipe13.2.Working with Excel XML Spreadsheets
Recipe13.3.Generating XTM Topic Maps from UML Modelsvia XMI
Recipe13.4.Generating Web Sites from XTM Topic Maps
Recipe13.5.Serving SOAP Documentation from WSDL
Chapter 14. Extending and Embedding XSLT
Introduction
Recipe14.1.Saxon Extension Functions
Recipe14.2.Saxon Extension Elements
Recipe14.3.Xalan-Java 2 Extension Functions
Recipe14.4.Java Extension Function Using the Class Format Namespace
Recipe14.5.Java Extension Function Using the Package Format Namespace
Recipe14.6.Java Extension Function Using the Java Format Namespace
Recipe14.7.Scripting Extension Function Using Inline Script Code
Recipe14.8.Xalan-Java 2 Extension Elements
Recipe14.9.Java Extension Element
Recipe14.10.Scripting Extension Elements
Recipe14.11.MSXML Extension Functions
Recipe14.12.Using Saxon s and Xalan s Native Extensions
Recipe14.13.Extending XSLT with JavaScript
Recipe14.14.Adding Extension Functions Using Java
Recipe14.15.Adding Extension Elements Using Java
Recipe14.16.Using XSLT from Perl
Recipe14.17.Using XSLT from Java
Chapter 15. Testing and Debugging
Introduction
Recipe15.1.Using xsl:message Effectively
Recipe15.2.Tracing the Flow of Your Stylesheet Through Its Input Document
Recipe15.3.Automating the Insertion of Debug Output
Recipe15.4.Including Embedded Unit Test Data in Utility Stylesheets
Recipe15.5.Structuring Unit Tests
Recipe15.6.Testing Boundary and Error Conditions
Chapter 16. Generic and Functional Programming
Introduction
Recipe16.1.Creating Polymorphic XSLT
Recipe16.2.Creating Generic Element Aggregation Functions
Recipe16.3.Creating Generic Bounded Aggregation Functions
Recipe16.4.Creating Generic Mapping Functions
Recipe16.5.Creating Generic Node-Set Generators
Colophon
Index
SYMBOL
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
XSLT Cookbook: Solutions and Examples for XML and XSLT Developers, 2nd Edition
ISBN: 0596009747
EAN: 2147483647
Year: 2003
Pages: 208
Authors:
Sal Mangano
BUY ON AMAZON
Adobe After Effects 7.0 Studio Techniques
Manipulating Time Itself
Navigating Multiple Compositions
Articulated Mattes
Wind
Pyrotechnics: Fire, Explosions, Energy Phenomena
Java for RPG Programmers, 2nd Edition
Data Types And Variables
An Object Orientation
Threads
Database Access
Appendix B Mixing RPG And Java
Postfix: The Definitive Guide
Introduction
Email Topics
UUCP, Fax, and Other Deliveries
Client-Detection Rules
Content Filtering
Lotus Notes Developers Toolbox: Tips for Rapid and Successful Deployment
Links to developerWorks
How to Zero Pad a Text Number
Format a Users Name
Links to developerWorks
Add an Icon to an Action Button
An Introduction to Design Patterns in C++ with Qt 4
Overloading on const-ness
Composite Pattern: Parents and Children
Table Models
Operators
Appendix A. C++ Reserved Keywords
Lean Six Sigma for Service : How to Use Lean Speed and Six Sigma Quality to Improve Services and Transactions
Getting Faster to Get Better Why You Need Both Lean and Six Sigma
Success Story #1 Lockheed Martin Creating a New Legacy
Seeing Services Through Your Customers Eyes-Becoming a customer-centered organization
Phase 2 Engagement (Creating Pull)
Designing World-Class Services (Design for Lean Six Sigma)
flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net
Privacy policy
This website uses cookies. Click
here
to find out more.
Accept cookies