Author(s): Kay Ethier, Alan Houser
Year: 2001
Language: English
Pages: 384
XML Weekend
Crash Course
™......Page 1
Front of Book......Page 4
General Book Info......Page 5
About the Authors......Page 6
Credits......Page 7
Dedication......Page 8
Preface......Page 10
Acknowledgments......Page 16
Contents at a Glance......Page 18
Contents......Page 20
Part I: Friday Evening......Page 33
Getting Started with Structured Documents......Page 34
QUIZ YOURSELF......Page 41
The W3C and Setting Open Standards......Page 42
XML Documents as Data......Page 43
XML Advantages......Page 45
QUIZ YOURSELF......Page 49
3: A Simple XML Document......Page 50
Creating Tags......Page 51
A Family Tree XML Document......Page 52
Creating and Viewing Your First XML Document......Page 54
Expanding Your XML Document and Improving Data Accessibility......Page 57
QUIZ YOURSELF......Page 59
Using XML for Web Publishing......Page 60
Rendering XML in the Browser......Page 61
Processing XML on the Server......Page 64
XML Document-Based Applications......Page 65
REVIEW......Page 67
QUIZ YOURSELF......Page 68
Friday Evening Review......Page 69
Part II: Saturday Morning......Page 73
5: Creating XML Documents......Page 74
Processing XML Documents......Page 75
Creating XML Documents......Page 76
REVIEW......Page 80
QUIZ YOURSELF......Page 81
6: Tour of XML Syntax: Elements and Attributes......Page 82
Containers of Information: XML Elements......Page 83
Adding More Information: XML Attributes......Page 86
Comparison of Elements and Attributes......Page 88
QUIZ YOURSELF......Page 89
Understanding the XML Declaration......Page 90
Inserting Comments in XML Documents......Page 91
Using Processing Instructions to Include Application- Specific Information......Page 93
Using Entity References for Special Characters......Page 94
Using Entities for Text Snippets......Page 95
Hiding Content from the Parser with CDATA Sections......Page 97
REVIEW......Page 98
QUIZ YOURSELF......Page 99
Passing the ParserÌs Syntax Check: A Well- Formed XML Document......Page 100
Understanding Syntax......Page 101
Creating Well-Formed XML Documents......Page 102
QUIZ YOURSELF......Page 106
Defining Elements in Your DTD......Page 108
Reviewing Content Models......Page 113
QUIZ YOURSELF......Page 116
10: Validating an XML Document and Expanding Its Structure......Page 118
Determining How to Validate......Page 119
Expanding Your DTD with New Elements......Page 121
Expanding Your XML Document......Page 123
Validating Your Expanded Document......Page 125
QUIZ YOURSELF......Page 126
Saturday Morning Review......Page 128
Part III: Saturday Afternoon......Page 131
Understanding Attributes......Page 132
Understanding Attribute Values......Page 133
Adding Attributes to Elements......Page 134
Utilizing Attributes: What Can They Do?......Page 137
Adding More Attributes......Page 138
REVIEW......Page 139
QUIZ YOURSELF......Page 140
Cross-Reference Links Using ID and IDREF......Page 142
REVIEW......Page 148
QUIZ YOURSELF......Page 149
Using External Entities to Create Reusable XML Content......Page 150
Combining XML Documents......Page 154
Viewing Your Composite Document......Page 155
QUIZ YOURSELF......Page 157
Reviewing Special Character Entities......Page 160
Defining and Using General Entities......Page 161
Defining and Using CDATA Content......Page 165
QUIZ YOURSELF......Page 168
Including Graphics and Other Binary Files in Your XML Document......Page 170
Peeking at SVG......Page 179
QUIZ YOURSELF......Page 180
16: Publishing XML Documents: Introduction to XML Transformations......Page 182
Challenges of Information Repurposing......Page 183
Introduction to XML Style Sheets......Page 184
XSLT Design Principles......Page 185
Your First XSLT Style Sheet......Page 187
REVIEW......Page 191
QUIZ YOURSELF......Page 192
Saturday Afternoon Review......Page 193
Part IV: Saturday Evening......Page 195
17: Simple Transformations with XSLT and XPath......Page 196
Writing XSLT Instructions......Page 197
QUIZ YOURSELF......Page 206
18: Introducing the XML Path Language ( XPath)......Page 208
Performing Selections Based on Document Structure......Page 209
Constraining Location Paths with Predicates......Page 214
QUIZ YOURSELF......Page 215
19: Using XSLT and XPath to Select XML Content......Page 216
Understanding the Context Node......Page 217
Using to Select Specific XML Content......Page 218
Conditional XSLT Processing......Page 219
Trying It Yourself: Examples......Page 221
QUIZ YOURSELF......Page 225
Adding XML Content to HTML Pages......Page 226
Working with HTML Templates and XML......Page 227
QUIZ YOURSELF......Page 235
Saturday Evening Review......Page 237
Part V: Sunday Morning......Page 241
21: Introduction to Displaying XML Documents......Page 242
Introduction to CSS......Page 243
QUIZ YOURSELF......Page 248
22: Formatting XML Documents with Cascading Style Sheets......Page 250
CSS Syntax......Page 251
Setting the display Property......Page 252
Controlling Text Block Formatting......Page 253
Using Context-Based Styles......Page 254
Cascading Rules and Conflict Resolution......Page 255
Associating CSS with Your XML Document......Page 257
Reviewing What CSS Does Provide......Page 258
QUIZ YOURSELF......Page 259
23: Building Web Sites with XSLT Û Part I......Page 260
One-to-Many Processing......Page 261
Using the SAXON XSLT Processor......Page 262
REVIEW......Page 269
QUIZ YOURSELF......Page 270
24: Building Web Sites with XSLT Û Part II......Page 272
Creating the Scenario......Page 273
Building the XML Source Document......Page 274
Creating the XSLT File......Page 276
Using CSS Classes to Style Your Result......Page 279
QUIZ YOURSELF......Page 281
25: Scripting XML......Page 282
Building an Interactive XML Document with the DOM......Page 283
Tour of the Building Blocks......Page 284
Putting It All Together......Page 288
Trying It Out......Page 291
QUIZ YOURSELF......Page 292
Introducing XHTML......Page 294
Reviewing HTML Documents......Page 295
Perfecting Attributes......Page 298
Using XHTML DOCTYPE Declarations......Page 300
Declaring the DTD......Page 301
REVIEW......Page 302
QUIZ YOURSELF......Page 303
Sunday Morning Review......Page 304
Part VI: Sunday Afternoon......Page 307
27: Introduction to XML Schemas - Part I......Page 308
Schema History......Page 309
Choosing Between XML Schemas and DTDs......Page 310
Schema Concepts......Page 312
Schema Building Blocks......Page 313
REVIEW......Page 316
QUIZ YOURSELF......Page 317
28: Introduction to XML Schemas - Part II......Page 318
Specifying Sequences of Elements......Page 319
Walking Through an Example Schema......Page 321
QUIZ YOURSELF......Page 326
Exploring Industry-Standard Vocabularies......Page 328
Determining Whether to Use a Standard DTD or Write Your Own......Page 331
Working with an Available DTD......Page 332
REVIEW......Page 335
QUIZ YOURSELF......Page 336
30: Linking and Querying XML Documents......Page 338
XLink for Creating Rich Link Structures......Page 339
XPointer for Addressing External Documents......Page 344
XML Query for Searching XML Documents......Page 345
QUIZ YOURSELF......Page 346
Sunday Afternoon Review......Page 347
Friday Evening Review Answers......Page 350
Saturday Morning Review Answers......Page 351
Saturday Afternoon Review Answers......Page 352
Sunday Morning Review Answers......Page 353
Sunday Afternoon Review Answers......Page 354
Appendix B: What's on the CD-ROM......Page 356
Using the CD-ROM with Microsoft Windows......Page 357
CD Contents......Page 358
Troubleshooting......Page 361
Index......Page 362
End-User License Agreement......Page 380
CD-ROM Installation Instructions......Page 384
More Weekend Crash Course Titles......Page 385
Back Cover......Page 386