XSLT 2 0 and XPath 2 0 Programmer s ReferenceXSLT 2 0 and XPath 2 0 Programmer s Reference



If you like detail, you will enjoy this book; if not, you probably won’t. But as well as giving the detail, this book aims to explain the concepts, in some depth.

Author: Michael Kay

Publisher: John Wiley & Sons

ISBN: 9780470192740

Category:

Page: 1368

View: 281

This book is primarily a practical reference book for professional XSLT developers. It assumes no previous knowledge of the language, and many developers have used it as their first introduction to XSLT; however, it is not structured as a tutorial, and there are other books on XSLT that provide a gentler approach for beginners. The book does assume a basic knowledge of XML, HTML, and the architecture of the Web, and it is written for experienced programmers. There’s no assumption that you know any particular language such as Java or Visual Basic, just that you recognize the concepts that all programming languages have in common. The book is suitable both for XSLT 1.0 users upgrading to XSLT 2.0, and for newcomers to XSLT. The book is also equally suitable whether you work in the Java or .NET world. As befits a reference book, a key aim is that the coverage should be comprehensive and authoritative. It is designed to give you all the details, not just an overview of the 20 percent of the language that most people use 80 percent of the time. It’s designed so that you will keep coming back to the book whenever you encounter new and challenging programming tasks, not as a book that you skim quickly and then leave on the shelf. If you like detail, you will enjoy this book; if not, you probably won’t. But as well as giving the detail, this book aims to explain the concepts, in some depth. It’s therefore a book for people who not only want to use the language but who also want to understand it at a deep level. The book aims to tell you everything you need to know about the XSLT 2.0 language. It gives equal weight to the things that are new in XSLT 2.0 and the things that were already present in version 1.0. The book is about the language, not about specific products. However, there are appendices about Saxon (the author’s own implementation of XSLT 2.0), about the Altova XSLT 2.0 implementation, and about the Java and Microsoft APIs for controlling XSLT transformations, which will no doubt be upgraded to handle XSLT 2.0 as well as 1.0. A third XSLT 2.0 processor, Gestalt, was released shortly before the book went to press, too late to describe it in any detail. But the experience of XSLT 1.0 is that there has been a very high level of interoperability between different XSLT processors, and if you can use one of them, then you can use them all. In the previous edition we split XSLT 2.0 and XPath 2.0 into separate volumes. The idea was that some readers might be interested in XPath alone. However, many bought the XSLT 2.0 book without its XPath companion and were left confused as a result; so this time, the material is back together. The XPath reference information is in self-contained chapters, so it should still be accessible when you use XPath in contexts other than XSLT. The book does not cover XSL Formatting Objects, a big subject in its own right. Nor does it cover XML Schemas in any detail. If you want to use these important technologies in conjunction with XSLT, there are other books that do them justice. This book contains twenty chapters and eight appendixes (the last of which is a glossary) organized into four parts. The following section outlines what you can find in each part, chapter, and appendix. Part I: Foundations: The first part of the book covers essential concepts. You should read these before you start coding. If you ignore this advice, as most people do, then you read them when you get to that trough of despair when you find it impossible to make the language do anything but the most trivial tasks. XSLT is different from other languages, and to make it work for you, you need to understand how it was designed to be used. Chapter 1: XSLT in Context: This chapter explains how XSLT fits into the big picture: how the language came into being and how it sits alongside other technologies. It also has a few simple coding examples to keep you alert. Chapter 2: The XSLT Processing Model: This is about the architecture of an XSLT processor: the inputs, the outputs, and the data model. Understanding the data model is perhaps the most important thing that distinguishes an XSLT expert from an amateur; it may seem like information that you can’t use immediately, but it’s knowledge that will stop you making a lot of stupid mistakes. Chapter 3: Stylesheet Structure: XSLT development is about writing stylesheets, and this chapter takes a bird’s eye view of what stylesheets look like. It explains the key concepts of rule-based programming using templates, and explains how to undertake programming-in-the-large by structuring your application using modules and pipelines. Chapter 4: Stylesheets and Schemas: A key innovation in XSLT 2.0 is that stylesheets can take advantage of knowledge about the structure of your input and output documents, provided in the form of an XML Schema. This chapter provides a quick overview of XML Schema to describe its impact on XSLT development. Not everyone uses schemas, and you can skip this chapter if you fall into that category. Chapter 5: The Type System: XPath 2.0 and XSLT 2.0 offer strong typing as an alternative to the weak typing approach of the 1.0 languages. This means that you can declare the types of your variables, functions, and parameters, and use this information to get early warning of programming errors. This chapter explains the data types available and the mechanisms for creating user-defined types. Part II: XSLT and XPath Reference: This section of the book contains reference material, organized in the hope that you can easily find what you need when you need it. It’s not designed for sequential reading, though you might well want to leaf through the pages to discover what’s there. Chapter 6: XSLT Elements: This monster chapter lists all the XSLT elements you can use in a stylesheet, in alphabetical order, giving detailed rules for the syntax and semantics of each element, advice on usage, and examples. This is probably the part of the book you will use most frequently as you become an expert XSLT user. It’s a “no stone unturned” approach, based on the belief that as a professional developer you need to know what happens when the going gets tough, not just when the wind is in your direction. Chapter 7: XPath Fundamentals: This chapter explains the basics of XPath: the low-level constructs such as literals, variables, and function calls. It also explains the context rules, which describe how the evaluation of XPath expressions depends on the XSLT processing context in which they appear. Chapter 8: XPath: Operators on Items: XPath offers the usual range of operators for performing arithmetic, boolean comparison, and the like. However, these don’t always behave exactly as you would expect, so it’s worth reading this chapter to see what’s available and how it differs from the last language that you used. Chapter 9: XPath: Path Expressions: Path expressions are what make XPath special; they enable you to navigate around the structure of an XML document. This chapter explains the syntax of path expressions, the 13 axes that you can use to locate the nodes that you need, and associated operators such as union, intersection, and difference. Chapter 10: XPath: Sequence Expressions: Unlike XPath 1.0, in version 2.0 all values are sequences (singletons are just a special case). Some of the most important operators in XPath 2.0 are those that manipulate sequences, notably the «for» expression, which translates one sequence into another by applying a mapping. Chapter 11: XPath: Type Expressions: The type system was explained in Chapter 5; this chapter explains the operations that you can use to take advantage of types. This includes the «cast» operation which is used to convert values from one type to another.A big part of this chapter is devoted to the detailed rules for how these conversions are done. Chapter 12: XSLT Patterns: This chapter returns from XPath to a subject that’s specific to XSLT. Patterns are used to define template rules, the essence of XSLT’s rule-based programming approach. The reason for explaining them now is that the syntax and semantics of patterns depends strongly on the corresponding rules for XPath expressions. Chapter 13: The Function Library: XPath 2.0 includes a library of functions that can be called from any XPath expression; XSLT 2.0 extends this with some additional functions that are available only when XPath is used within XSLT. The library has grown immensely since XPath 1.0. This chapter provides a single alphabetical reference for all these functions. Chapter 14: Regular Expressions: Processing of text is an area where XSLT 2.0 and XPath 2.0 are much more powerful than version 1.0, and this is largely through the use of constructs that exploit regular expressions. If you’re familiar with regexes from languages such as Perl, this chapter tells you how XPath regular expressions differ. If you’re new to the subject, it explains it from first principles. Chapter 15: Serialization: Serialization in XSLT means the ability to generate a textual XML document from the tree structure that’s manipulated by a stylesheet. This isn’t part of XSLT processing proper, so (following W3C’s lead) it’s separated it into its own chapter. You can control serialization from the stylesheet using an declaration, but many products also allow you to control it directly via an API. Part III: Exploitation: The final section of the book is advice and guidance on how to take advantage of XSLT to write real applications. It’s intended to make you not just a competent XSLT coder, but a competent designer too. The best way of learning is by studying the work of others, so the emphasis here is on practical case studies. Chapter 16: Extensibility: This chapter describes the “hooks” provided in the XSLT specification to allow vendors and users to plug in extra functionality. The way this works will vary from one implementation to another, so we can’t cover all possibilities, but one important aspect that the chapter does cover is how to use such extensions and still keep your code portable. Chapter 17: Stylesheet Design Patterns: This chapter explores a number of design and coding patterns for XSLT programming, starting with the simplest “fill-in-the-blanks” stylesheet, and extending to the full use of recursive programming in the functional programming style, which is needed to tackle problems of any computational complexity. This provides an opportunity to explain the thinking behind functional programming and the change in mindset needed to take full advantage of this style of development. Chapter 18: Case Study: XMLSpec: XSLT is often used for rendering documents, so where better to look for a case study than the stylesheets used by the W3C to render the XML and XSLT specifications, and others in the same family, for display on the web? The resulting stylesheets are typical of those you will find in any publishing organization that uses XML to develop a series of documents with a compatible look-and-feel. Chapter 19: Case Study: A Family Tree: Displaying a family tree is another typical XSLT application. This example with semi-structured data—a mixture of fairly complex data and narrative text—that can be presented in many different ways for different audiences. It also shows how to tackle another typical XSLT problem, conversion of the data into XML from a legacy text-based format. As it happens, this uses nearly all the important new XSLT 2.0 features in one short stylesheet. But another aim of this chapter is to show a collection of stylesheets doing different jobs as part of a complete application. Chapter 20: Case Study: Knight's Tour: Finding a route around a chessboard where a knight visits every square without ever retracing its steps might sound a fairly esoteric application for XSLT, but it’s a good way of showing how even the most complex of algorithms are within the capabilities of the language. You may not need to tackle this particular problem, but if you want to construct an SVG diagram showing progress against your project plan, then the problems won’t be that dissimilar. Part IV: Appendices: Appendix A: XPath 2.0 Syntax Summary: Collects the XPath grammar rules and operator precedences into one place for ease of reference. Appendix B: Error Codes: A list of all the error codes defined in the XSLT and XPath language specifications, with brief explanations to help you understand what’s gone wrong. Appendix C: Backward Compatibility: The list of things you need to look out for when converting applications from XSLT 1.0. Appendix D: Microsoft XSLT Processors: Although the two Microsoft XSLT processors don’t yet support XSLT 2.0, we thought many readers would find it useful to have a quick summary here of the main objects and methods used in their APIs. Appendix E: JAXP: the Java API for XML Processing: JAXP is an interface rather than a product. Again, it doesn’t have explicit support yet for XSLT 2.0, but Java programmers will often be using it in XSLT 2.0 projects, so the book includes an overview of the classes and methods available. Appendix F: Saxon: At the time of writing Saxon (developed by the author of this book) provides the most comprehensive implementation of XSLT 2.0 and XPath 2.0, so its interfaces and extensions are covered in some detail. Appendix G: Altova: Altova, the developers of XML Spy, have an XSLT 2.0 processor that can be used either as part of the development environment or as a freestanding component. This appendix gives details of its interfaces. Appendix H: Glossary Note: CD-ROM/DVD and other supplementary materials are not included as part of eBook file.

XSLT 2 0 and XPath 2 0 Programmer s ReferenceXSLT 2 0 and XPath 2 0 Programmer s Reference



20. Case. Study: Knight's. Tour. This chapter contains the third (and last) of the
XSLT case studies. It shows how XSLT can be used to calculate a knight's tour of
the chessboard, in which the knight visits every square without ever landing on ...

Author: Michael Kay

Publisher: John Wiley & Sons

ISBN: 9781118059470

Category:

Page: 1368

View: 362

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.

XPath 2 0 Programmer s ReferenceXPath 2 0 Programmer s Reference



See also strongly typed language disadvantages, 20 JavaScript, 20 XPath 1.0,
20 well-balanced XML Fragment, 36 whitespace and tokens, 460 Xalan XSLT
processor, 21 xdt, namespace prefix, 32, 33. See also xs, namespace prefix ...

Author: Michael Kay

Publisher: John Wiley & Sons

ISBN: 9780764569104

Category:

Page: 530

View: 808

What is this book about? XPath 2.0 Programmer's Reference is the only authoritative reference on XPath, a sub-language within XSLT that determines which part of an XML document the XSLT transforms. Written for professional programmers who use XML every day but find the W3C XPath specifications tough to slog through, this book explains in everyday language what every construct in the language does and how to use it. It also offers background material on the design thinking behind the language, gentle criticism of the language specification when appropriate, and a diverse range of interesting examples in various application areas.

XSLT 2 0 Programmer s ReferenceXSLT 2 0 Programmer s Reference



Development of the pattern and transformation languages should remain in the
XSL working group . ... You can find the documents at the following URLs : http : /
/ www . w3 . org / TR / 2001 / WD - xslt20req - 20010214 http : / / www . w3 . org ...

Author: Michael Kay

Publisher: Wrox

ISBN: UOM:39015059315658

Category:

Page: 911

View: 606

The book is the authoritative reference guide to the language. Without using the formal and inaccessible language of the W3C specifications, it tells_the reader_exactly what every construct in the language does, and how it is intended to be used. It is a reference rather than a tutorial; it is designed for the professional programmer who is using the language every day. It is the book that people quote when they claim that a particular product is giving the wrong answer, and the book that implementers of the language turn to when they want clarification of the specifications. At the same time, the book_is readable. Reviews of the previous editions show that readers appreciate the background material on the design thinking behind the language, the essay on functional programming, the occasional dry wit, the gentle criticism of the language specification when appropriate, and the fact that the examples stray into a diverse range of interesting application areas.

Mastering XSLTMastering XSLT



As with the Infoset , the XQuery 1.0 and XPath 2.0 Data Model specifies what
information in the documents is accessible , but it does not specify the
programming - language interfaces or bindings used to represent or access the
data . ... Draft and not ready for prime time , can be found at www.w3.org/TR/
xpath20/ I mentioned that XPath consists of an informal semantics . ... For
example , the XML declaration , the DOCTYPE declaration , and entity references
are not considered .

Author: Chuck White

Publisher: Sybex

ISBN: UCSC:32106016500222

Category:

Page: 905

View: 842

Experienced XML developers who want comprehensive coverage of XSLT will find it here, as will document design professionals who need to convert XML to HTML for Web pages.

JAVA J2SE 1 4 JAVA J2SE 1 4



For complete coverage of XSLT , XPath , and TrAX , take a look at Michael Kay's
XSLT Programmer's Reference ( Second Edition ) , ISBN 1-861005-06-7 , and
Java XML Programmer's Reference , ISBN 1-861005-20-2 , by Akif et al . , both ...

Author: HART

Publisher: Apress

ISBN: 1861007272

Category:

Page: 371

View: 226

This title provides a quick assessment of the upgrades included in the J2SE 1.4 release, to give a developer familiar with Java in its 1.2 and 1.3 incarnations an upgrade to the new standard. It provides examples of the technologies in action, so that readers can go away and immediately apply the new capabilities of J2SE 1.4 in their programming.

BizTalk Server Developer s GuideBizTalk Server Developer s Guide



Author: Peishu Li

Publisher: McGraw-Hill Osborne Media

ISBN: UOM:39015054140234

Category:

Page: 795

View: 904

BizTalk Server 2000 is an integral piece in the .NET enterprise server framwork and forms the foundation for Microsoft's e-commerce platform. Aimed at the developer, this work offers in-depth information on building and deploying real-world BizTalk applications.

Twenty fifth ACM SIGMOD SIGACT SIGART Symposium on Principles of Database SystemsTwenty fifth ACM SIGMOD SIGACT SIGART Symposium on Principles of Database Systems



[20] EXSLT. Available from http: //www.exslt .org/, 2005. As viewed on November
28, 2005. [21] W. Fan, J. X. Yu, H. Lu, J. Lu, and R. Rastogi. Query translation
from XPath to SQL in the presence of recursive DTDs. ... XPath Programmer's
reference. Wrox, 2004. ... [41 ] SAXON: The XSLT and XQuery processor, version
6.5.5.

Author:

Publisher:

ISBN: UCSD:31822030114706

Category:

Page: 366

View: 816

Essential XML Quick ReferenceEssential XML Quick Reference



A Programmer's Reference to XML, XPath, XSLT, XML Schema, SOAP, and More
Kristin Erickson, Aaron Skonnard, Martin Gudgin. a URI reference as defined in
IETF RFC 2396 ( http://www.ietf.org/rfc/ rfc2396.txt ) . In namespace - aware XML
... Proposed Recommendation 20 December 2000 . Available 82 Essential XML ...

Author: Kristin Erickson

Publisher: Addison-Wesley Professional

ISBN: UOM:39015050468829

Category:

Page: 402

View: 804

A guide to mainstream XML technologies covers XML 1.0, namespaces, DTD, XPath, XPointer, Xinclude, XML Base, Xslt, SAX, DOM, XML Schema Datatypes, XML Schema Structures, and SOAP.

Programming the Web Using XMLProgramming the Web Using XML



... styling , 182-183 XPATH , 176 XSL element references , 184–185 XSL
namespace , 172 XSL template , 175-176 , 183 XSLT , 170 debugging , 183-184
to ... See Hypertext Markup Language .html file extension , 20 HTML tag , 5 , 145
HTTP .

Author: Ellen Pearlman

Publisher: McGraw-Hill

ISBN: UCSC:32106017196087

Category:

Page: 390

View: 865

Compares HTML, XHTML, and XML, and includes examples of how XML is being used to help readers appreciate the power of XML. This text also provides a coverage of the rules and standards for XML, which is very critical in programming XML. It is designed to help those who have a background in HTML make the transition to XML.

Definitive XSLT and XPathDefinitive XSLT and XPath



An example of the HTML vocabulary supplied to the XSLT processor to produce
the markup in Example 1–7 would be : Line 1 2 Example ... 20pt " > < xsl : text >
From : < / xsl : text ) < fo : inline font - style = " italic " > < xsl : text > ( Customer
Reference ) < / xsl : text > < fo ... Comparing the style shown above in both
examples to imperative programming techniques , one can see the XSLT
stylesheet writer is ...

Author: G. Ken Holman

Publisher: Upper Saddle River, NJ : Prentice Hall PTR

ISBN: UOM:39015054457091

Category:

Page: 373

View: 569

The definitive guide to XSLT and XPath written by one of the world's leading authorities. Complete coverage of every facet of the XSLT/XPath W3C specifications, including brand-new standards such as XSL, XML Query, and XPointer.

Proceedings of the 2006 ACM Symposium on Document EngineeringProceedings of the 2006 ACM Symposium on Document Engineering



XSLT brings technologies from functional programming to bear on producing
robust programs firmly embedded in the context of XML . ... PANEL TOPICS The
panel expects to discuss and illustrate these three areas : Templates & Functions
XSLT2 . 0 adds user - definable ... REFERENCES [ 1 ] W3C , World Wide Web
Consortium XSL Transformations ( XSLT ) Version 2 . ... [ 2 ] Kay , M . XPath2 . 0 .

Author: David F. Brailsford

Publisher:

ISBN: 1595935150

Category:

Page: 222

View: 672

Markup LanguagesMarkup Languages



Chapter 20 | Extending XPath Yourself Finally , it is not difficult for a developer to
extend XPath her - or himself ; this chapter describes ... Appendix B | XSLT Quick
Reference An element - by - element reference to XSLT , listed alphabetically .

Author:

Publisher:

ISBN: UOM:39015047888774

Category:

Page:

View: 792

ProceedingsProceedings



IN 1. viiri Vivi Robust Pointing by XPath Language : Authoring Support and
Empirical ... References uses is a expression full of the variety . When XPath
expressions ... Xsl transformations ( xslt ) version 1.0 . http://www.w3.org/TR/xslt ,
1999 . [ 9 ] J. Clark ... ( 20 ) D. Sturman , G. Banavar , and R. Strom . Reflection ...
Reflection Workshop at Object - Oriented Programming Languages and
Applications , 1998 .

Author:

Publisher: IEEE

ISBN: 0769518729

Category:

Page: 430

View: 316

Contains the 43 regular papers and 13 short papers presented at the January 2003 symposium on the technologies that enable software applications to run on the internet. The main areas of discussion are network and protocol architecture, collaboration technology, Internet computing models, web cachin

XSLTXSLT



Part II describes the concepts of XSLT and XPath in more depth . ... sets and
encoding schemes , and a reference for XSLT and XPath , with many examples
for the elements and functions in different circumstances . Part I The first three
chapters discuss the most frequently used 20 percent of XML and XSLT . You will
be able to handle 80 percent of XSLT work in your daily life as an XSLT
developer .

Author: Khun Yee Fung

Publisher: Addison-Wesley Professional

ISBN: UCSD:31822029703261

Category:

Page: 441

View: 952

A tutorial and reference to Extensible Stylesheet Language Transformation explains how to transform XML to HTML, work with the W3C standard, and master XPath expressions.

A First Look at SQL Server 2005 for DevelopersA First Look at SQL Server 2005 for Developers



The SELECT statement can also refer the other columns in the xml_tab table —
in this case , the the_id column . ... SELECT the_id , a.value ( ' l_name [ 1 ] / text (
) [ 1 ] ' , ' varchar ( 20 ) ' ) AS l_name FROM xml_tab CROSS APPLY xml_col.
nodes ( ' / people / person ... These standards apply not only to XQuery , but also
to XPath 2.0 and indirectly to XSLT 2.0 , which uses XPath 2.0 as its query
language .

Author: Bob Beauchemin

Publisher: Addison-Wesley Professional

ISBN: UCR:31210018705085

Category:

Page: 693

View: 589

A guide to Microsoft SQL Server 2005, also known as "Yukon," cover such topics as .NET hosting, T-SQL, client-side coding, and XML query languages.

PRO XSL PRO XSL



XSLT access to non - XML document types , 149 wrapping text see textual
manipulation . write once , display anywhere , 313 XSL ... XML document
transformations . allows developers to create their own markup languages , 9
alternatives to XSLT for transforming , 20 as data ... XML document
transformations . book catalog example , 63 browser default display formats , 328
components of an example ...

Author: CAGLE

Publisher: Springer

ISBN: UOM:39015051293473

Category:

Page: 789

View: 728

XSL is a vital companion to XML and is used for two main purposes: to format or style XML data (like Cascading Stylesheets) so that it can be displayed in a browser, and to transform XML data. When you transform and XML document, you manipulate the data into a new structure, for example, re-ordering the data. This enables the same data store to be used in an unlimited number of ways. It is the transformation ability that gives XSL (and therefore XML) its real power. You can imagine XSL as a bridging mechanism between your XML data store and the browser. It does a similar job to ASP, but it is platform independent. XSL can also be used to transform XML into other text formats (eg HTML). Pro XSL demonstrates how to decide which technique to use and how to fit XSL into the development of practical applications. It also shows how to implement the data transformation processes in order to filter, sort or change the structure of data and add style for presentation purposes.