Sold Out
Book Categories |
Foreword | xv | |
Acknowledgements | xix | |
Chapter 1 | XSLT and XPath in context | 1 |
1.1 | The XML family of Recommendations | 5 |
1.1.1 | Extensible Markup Language (XML) | 5 |
1.1.2 | XML Path Language (XPath) | 12 |
1.1.3 | Styling structured information | 15 |
1.1.4 | Extensible Stylesheet Language (XSL) | 17 |
1.1.5 | Extensible Stylesheet Language Transformations (XSLT) | 20 |
1.1.6 | Namespaces | 33 |
1.1.7 | Stylesheet association | 38 |
1.2 | Transformation data flows | 41 |
1.2.1 | Transformation from XML to XML | 41 |
1.2.2 | Transformation from XML to XSL formatting semantics | 42 |
1.2.3 | Transformation from XML to non-XML | 43 |
1.2.4 | XSLT as an application front-end | 49 |
1.2.5 | Three-tiered architectures | 50 |
Chapter 2 | Getting started with XSLT and XPath | 53 |
2.1 | Stylesheet examples | 55 |
2.1.1 | Some simple examples | 56 |
2.2 | Syntax basics--stylesheets, templates, instructions | 60 |
2.2.1 | Stylesheet requirements | 60 |
2.2.2 | Instructions and literal result elements | 61 |
2.2.3 | Templates and template rules | 63 |
2.2.4 | Simplified stylesheets | 65 |
2.2.5 | Composite stylesheets | 66 |
2.2.6 | Approaches to stylesheet design | 67 |
2.3 | More stylesheet examples | 70 |
2.3.1 | Processing XML data with multiple XSLT stylesheets | 70 |
Chapter 3 | XPath data model | 77 |
3.1 | XPath data model components | 83 |
3.1.1 | The file abstractions | 83 |
3.1.2 | Comment node and processing instruction node | 83 |
3.1.3 | Element node | 84 |
3.1.4 | Namespace node | 85 |
3.1.5 | Attribute node | 86 |
3.1.6 | Text node | 88 |
3.1.7 | Whitespace-only text nodes | 89 |
3.1.8 | Root node | 91 |
3.1.9 | Summary of XPath data model nodes | 91 |
3.1.10 | Depiction of a complete node tree | 93 |
3.2 | XPath expressions and patterns | 97 |
3.2.1 | Expressions | 97 |
3.2.2 | Location path expression evaluation context | 99 |
3.2.3 | Location path expression structure | 100 |
3.2.4 | Example node-set and pattern expressions | 107 |
3.2.5 | Location path expression evaluation summary | 110 |
3.2.6 | Processing of node-sets from reverse axes | 111 |
Chapter 4 | XSLT processing model | 113 |
4.1 | XSLT processing model | 118 |
4.1.1 | Example transformation requirement | 118 |
4.1.2 | Approaches to transformation | 121 |
4.1.3 | Calculating result text | 122 |
4.1.4 | Iterative template instantiation | 126 |
4.1.5 | Template rules | 127 |
4.1.6 | Modes | 129 |
4.1.7 | Empty templates | 130 |
4.1.8 | Built-in template rules | 131 |
4.1.9 | Template rule conflict resolution | 132 |
4.1.10 | Processing model summary | 135 |
4.1.11 | Parallelism | 136 |
4.1.12 | Suggested stylesheet development approach | 136 |
4.2 | Sample XSLT stylesheets | 137 |
4.2.1 | Card sample stylesheets | 137 |
Chapter 5 | The XSLT transformation environment | 139 |
5.1 | Stylesheet basics | 142 |
5.1.1 | The stylesheet document/container element | 142 |
5.1.2 | Documenting stylesheets | 145 |
5.1.3 | Namespace protection | 146 |
5.2 | Communicating with the XSLT processor | 148 |
5.2.1 | Serializing the result tree | 148 |
5.2.2 | Illustration of output methods | 150 |
5.2.3 | Communicating with the outside environment | 152 |
5.2.4 | Uncontrolled processes | 154 |
Chapter 6 | XSLT stylesheet management | 155 |
6.1 | Modularizing the logical structure of stylesheets | 160 |
6.1.1 | Internal general entities | 160 |
6.1.2 | Variables and parameters | 163 |
6.1.3 | Named templates | 169 |
6.1.4 | Explicit loop repetition | 173 |
6.2 | Modularizing the physical structure of stylesheets | 174 |
6.2.1 | External parsed general entities | 174 |
6.2.2 | Included files | 175 |
6.2.3 | Imported files | 176 |
6.2.4 | Extension mechanisms | 178 |
Chapter 7 | XSLT process control and result tree instructions | 181 |
7.1 | Conditional control instructions | 185 |
7.1.1 | "If--Then" conditionality | 185 |
7.1.2 | "If--Else If--Else" conditionality | 186 |
7.1.3 | Conditional variable assignment | 187 |
7.1.4 | Node type testing | 188 |
7.2 | Numbering instructions | 189 |
7.2.1 | Source tree numbering | 189 |
7.2.2 | Representing numbers in the result tree | 196 |
7.3 | Result tree node instantiation | 198 |
7.3.1 | Building result tree nodes with instructions | 198 |
7.3.2 | Building result tree nodes with literal result elements | 203 |
7.3.3 | Copying source tree nodes to the result tree | 204 |
7.3.4 | Escaping text placed in the result tree | 208 |
Chapter 8 | XPath and XSLT expressions and advanced techniques | 215 |
8.1 | Expression functions | 219 |
8.1.1 | Calculating values using number, string and boolean expression functions | 219 |
8.1.2 | Calculating values using number functions | 220 |
8.1.3 | Calculating values using string functions | 222 |
8.1.4 | Decimal formatting | 224 |
8.1.5 | Calculating values using boolean functions | 228 |
8.1.6 | Calculating values using node-set-related expression functions | 231 |
8.1.7 | Node-set intersection and difference | 234 |
8.1.8 | String variables in location steps | 236 |
8.2 | Content and document referencing techniques | 237 |
8.2.1 | Element referencing with XML identifiers | 237 |
8.2.2 | Content referencing with XSLT keys | 238 |
8.2.3 | Current node referencing | 242 |
8.2.4 | Unparsed entity referencing in XSLT | 244 |
8.2.5 | Document referencing in XSLT | 245 |
8.3 | Traversing the source tree | 250 |
8.3.1 | Inferring structure when there is none | 250 |
8.3.2 | Templates as pseudo-subroutines | 252 |
8.3.3 | Passing variables to pseudo-subroutines | 255 |
Chapter 9 | Sorting and grouping | 259 |
9.1 | Sorting source nodes to make result nodes | 262 |
9.1.1 | The sort instruction | 262 |
9.2 | Grouping constructs found in the source node tree | 266 |
9.2.1 | Grouping and uniqueness using axes | 266 |
9.2.2 | Grouping and uniqueness using keys | 270 |
9.2.3 | Grouping and uniqueness within sub-trees using keys | 272 |
9.3 | Other uses of sorting | 277 |
9.3.1 | Finding the minimum and maximum values | 277 |
Appendix A | XML to HTML transformation | 279 |
A.1 | The W3C web presentation standards context | 282 |
A.1.1 | Hypertext Markup Language (HTML) | 282 |
A.1.2 | Extensible HyperText Markup Language (XHTML) | 283 |
A.1.3 | Cascading Stylesheets (CSS) | 284 |
A.1.4 | Browser screen painting | 285 |
A.2 | Well-formed HTML | 286 |
A.2.1 | What makes well-formed and valid HTML? | 286 |
A.3 | HTML markup generation techniques | 287 |
A.3.1 | Image elements | 287 |
A.3.2 | HTML meta-data | 289 |
A.3.3 | Anchor elements | 290 |
Appendix B | XSL formatting semantics introduction | 295 |
B.1 | Formatting model | 301 |
B.1.1 | Summary of formatting model components | 301 |
B.2 | Formatting objects | 304 |
B.2.1 | Formatting object vocabulary | 304 |
B.3 | Example stylesheet with formatting constructs | 305 |
B.3.1 | Example stylesheet with formatting constructs | 305 |
Appendix C | Instruction, function, and grammar summaries | 309 |
C.1 | Vocabulary and functions | 311 |
C.1.1 | XSLT instruction element summary | 311 |
C.1.2 | XPath and XSLT function summary | 314 |
C.2 | Grammars | 317 |
C.2.1 | XPath grammar productions | 317 |
C.2.2 | XSLT grammar productions | 321 |
Appendix D | Sample tool information | 323 |
D.1 | James Clark's XT | 328 |
D.1.1 | XT differences from W3C XSLT/XPath Recommendations | 328 |
D.1.2 | Extension element: Multiple output documents | 329 |
D.1.3 | Extension functions: Node set manipulation | 334 |
D.1.4 | Extension functions: Java library access | 336 |
D.1.5 | Extension method: Non-XML serialization | 339 |
D.1.6 | Character encoding for the serialized result | 342 |
D.1.7 | Invoking XT | 343 |
D.2 | Microsoft Internet Explorer 5 | 345 |
D.2.1 | Invoking the Microsoft MSXML processor | 345 |
Appendix E | From XML to press: An XSLT case study | 351 |
E.1 | Authoring and Compilation | 353 |
E.2 | Transformation and compositing | 356 |
Index | 361 |
Login|Complaints|Blog|Games|Digital Media|Souls|Obituary|Contact Us|FAQ
CAN'T FIND WHAT YOU'RE LOOKING FOR? CLICK HERE!!! X
You must be logged in to add to WishlistX
This item is in your Wish ListX
This item is in your CollectionDefinitive XSLT and XPATH
X
This Item is in Your InventoryDefinitive XSLT and XPATH
X
You must be logged in to review the productsX
X
X
Add
Definitive XSLT and XPATH, The definitive guide to XSLT and XPath—written by one of the world's leading authorities.
X
X
Add
Definitive XSLT and XPATH, The definitive guide to XSLT and XPath—written by one of the world's leading authorities.
|