CHF39.00
Download est disponible immédiatement
Combining coverage of both XSLT 2.0 and XPath 2.0, this book is the definitive reference to the final recommendation status versions of both specifications. The authors start by covering the concepts in XSLT and XPath, and then delve into elements, operators, expressions with syntax, usage, and examples. Some of the specific topics covered include XSLT processing model, stylesheet structure, serialization, extensibility, and many others. In addition to online content that includes error codes, the book also has case studies you'll find applicable to your own challenges.
Auteur
Michael Kay has been working in the XML field since 1997; he became a member of the XSL Working Group soon after the publication of XSLT 1.0, and took over as editor of the XSLT 2.0 specification in early 2001. He is also a member of the XQuery and XML Schema Working Groups, and is a joint editor of the XPath 2.0 specification. He is well known not only through previous editions of this book but also as the developer of the open source Saxon product, a pioneering implementation of XSLT 2.0, XPath 2.0, and XQuery 1.0.
In 2004 the author formed his own company, Saxonica, to provide commercial software and services building on the success of the Saxon technology. Previously, he spent three years with Software AG, working with the developers of the Tamino XML server, an early XQuery implementation. His background is in database technology: after leaving the University of Cambridge with a Ph.D., he worked for many years with the (then) computer manufacturer ICL, developing network, relational, and objectoriented database software products as well as a text search engine, and held the position of ICL Fellow.
Texte du rabat
Combining coverage of XSLT 2.0 and XPath 2.0 into one book, this authoritative reference provides equal weight to the powerful new features of XSLT 2.0 and XPath 2.0 and the established capabilities of the 1.0 versions. Author Michael Kay has created his own implementation of XSLT 2.0 (Saxon), and he puts his unique knowledge to work in this detailed reference to the elements of the XSLT 2.0 language and the fundamentals of XPath, complete with syntax, practical usage advice, and examples.
The book begins by teaching the essential concepts behind the language, knowledge you need if you are going to write good code rather than just working code. You will discover how XSLT and XPath differ from other languages, and how you use them to create effective web-based applications. The central chapters provide meticulous coverage of the language features of XSLT 2.0 and XPath 2.0. You will return to this reference whenever you encounter new programming challenges. You finish with detailed case studies highlighting real applications to give you insights you would otherwise gain only from months of practical experience.
What you will learn from this book
All the XSLT elements you can use in a stylesheet and the detailed rules for the syntax and semantics of each
How Path expressions enable you to navigate around the structure of an XML document
How you can improve your stylesheets by taking advantage of the XML Schema definitions of input and output documents
How to take advantage of vendor extensions without losing portability
Techniques for taking advantage of XSLT to write real applications
Who this book is for
This book is for experienced programmers who are looking to become proficient with XSLT 2.0. Previous experience with XSLT or XPath is not necessary. However, a working knowledge of XML, HTML, and web architecture is beneficial.
Wrox Programmer's References are designed to give the experienced developer straight facts on a new technology, without hype or unnecessary explanations. They deliver hard information with plenty of practical examples to help you apply new tools to your development projects today.
Contenu
Introduction xxix
List of Examples xxxix
Part I: Foundations
Chapter 1: XSLT in Context 3
What Is XSLT? 3
How Does XSLT Transform XML? 7
The Place of XSLT in the XML Family 21
The History of XSL 26
XSLT 2.0 as a Language 33
Summary 40
Chapter 2: The XSLT Processing Model 41
XSLT: A System Overview 41
The XDM Tree Model 45
The Transformation Process 67
Error Handling 80
Variables and Expressions 80
Summary 88
Chapter 3: Stylesheet Structure 89
Changes in XSLT 2.0 90
The Modular Structure of a Stylesheet 90
The Element 98
The Processing Instruction 99
Embedded Stylesheets 102
Declarations 104
Instructions 108
Simplified Stylesheets 125
Writing Portable Stylesheets 127
Whitespace 141
Summary 148
Chapter 4: Stylesheets and Schemas 151
XML Schema: An Overview 151
Declaring Types in XSLT 161
Validating the Source Document 165
Validating the Result Document 170
Validating a Temporary Document 174
Validating Individual Elements 176
Validating Individual Attributes 179
The default-validation Attribute 180
Importing Schemas 180
Using xsi:type 181
Nillability 182
Summary 183
Chapter 5: Types 185
What Is a Type System? 185
Changes in 2.0 186
Sequences 187
Atomic Values 189
Atomic Types 191
Schema Types and XPath Types 217
The Type Matching Rules 219
Static and Dynamic Type Checking 221
Summary 224
Part II: XSLT and XPath Reference
Chapter 6: XSLT Elements 227
xsl:analyze-string 230
xsl:apply-imports 237
xsl:apply-templates 240
xsl:attribute 254
xsl:attribute-set 266
xsl:call-template 271
xsl:character-map 280
xsl:choose 282
xsl:comment 285
xsl:copy 287
xsl:copy-of 292
xsl:decimal-format 298
xsl:document 303
xsl:element 306
xsl:fallback 316
xsl:for-each 322
xsl:for-each-group 326
xsl:function 344
xsl:if 353
xsl:import 357
xsl:import-schema 368
xsl:include 372
xsl:key 376
xsl:matching-substring 386
xsl:message 386
xsl:namespace 390
xsl:namespace-alias 394
xsl:next-match 399
xsl:non-matching-substring 402
xsl:number 403
xsl:otherwise 420
xsl:output 420
xsl:output-character 424
xsl:param 425
xsl:perform-sort 437
xsl:preserve-space 439
xsl:processing-instruction 442
xsl:result-document 445
xsl:sequence 452
xsl:sort 455
xsl:strip-space 465
xsl:stylesheet 465
xsl:template 483
xsl:text 492
xsl:transform 495
xsl:value-of 495
xsl:variable 500
xsl:when 515
xsl:with-param 517
Summary 519
Chapter 7: XPath Fundamentals 521
Notation 522
Where to Start 523
Expressions 524
Lexical Constructs 527
Primary Expressions 539
Variable References 540
Parenthesized Expressions 542
Context Item Expressions 543
Function Calls 544
Conditional Expressions 551 The XPath Evaluation...