XML for the World Wide Web: Visual QuickStart Guide by Elizabeth Castro, Paperback | Barnes & Noble
XML for the World Wide Web: Visual QuickStart Guide / Edition 1

XML for the World Wide Web: Visual QuickStart Guide / Edition 1

by Elizabeth Castro
     
 

ISBN-10: 0201710986

ISBN-13: 2900201710983

Pub. Date: 10/23/2000

Publisher: Peachpit Press

Web-maven Elizabeth Castro, who has penned Peachpit books on HTML, Perl and CGI, and Netscape, now tackles XML--an indispensable tool for creating personalized, updated content for each visitor on your site. Whether you build Web pages for a living or you're taking on a new hobby, XML for the World Wide Web contains everything you need to create dynamic Web sites by

Overview

Web-maven Elizabeth Castro, who has penned Peachpit books on HTML, Perl and CGI, and Netscape, now tackles XML--an indispensable tool for creating personalized, updated content for each visitor on your site. Whether you build Web pages for a living or you're taking on a new hobby, XML for the World Wide Web contains everything you need to create dynamic Web sites by writing XML code, developing custom XML applications with DTDs and schemas, transforming XML into personalized Web content through  XSLT-based transformations, and professionally formatting XML documents with Cascading Style Sheets.

The real power of XML lies in combining information from various sources and generating personalized content for different visitors. Castro's easy-to-follow graphics show exactly what XML looks like, and her real-world examples explain how to transform and streamline your Web-site creation process by automatically updating content.

Product Details

ISBN-13:
2900201710983
Publisher:
Peachpit Press
Publication date:
10/23/2000
Series:
Visual QuickStart Guide
Edition description:
Older Edition
Pages:
272

Table of Contents

Introduction11
The Problem with HTML12
The Power of XML13
XML's Helpers14
XML in the Real World15
About This Book16
What This Book is Not17
The XML VQS Web Site18
Part 1XML
Chapter 1Writing XML21
Elements, Attributes, and Values22
Rules for Writing XML23
Declaring the XML Version24
Creating the Root Element25
Writing Non-Empty Elements26
Nesting Elements27
Adding Attributes28
Using Empty Elements29
Writing Comments30
Writing Five Special Symbols31
Displaying Elements as Text32
Part 2DTDs
Chapter 2Creating a DTD35
Declaring an Internal DTD36
Writing an External DTD37
Naming an External DTD38
Declaring a Personal External DTD39
Declaring a Public External DTD40
Chapter 3Defining Elements and Attributes in a DTD41
Defining Elements42
Defining an Element to Contain Only Text44
Defining an Element to Contain One Child45
Defining an Element to Contain a Sequence46
Defining Choices47
Defining How Many Units48
About Attributes49
Defining Simple Attributes50
Defining Attributes with Unique Values52
Referencing Attributes with Unique Values53
Restricting Attributes to Valid XML Names54
Chapter 4Entities and Notations in DTDs55
Creating Shortcuts for Text56
Using Shortcuts for Text57
Shortcuts for Text in External Files58
Creating and Using Shortcuts for DTDs60
Creating Entities for Unparsed Content62
Embedding Unparsed Content64
Part 3XML Schema and Namespaces
Chapter 5XML Schema69
Simple and Complex Types70
Local and Global Declarations71
Beginning a Simple Schema72
Indicating a Simple Schema's Location73
Annotating Schemas74
Chapter 6Defining Simple Types75
Declaring an Element with a Simple Type76
Using Date and Time Types78
Using Number Types80
Deriving Custom Simple Types81
Using Anonymous Custom Types82
Specifying a Set of Acceptable Values83
Specifying a Pattern for a Simple Type84
Specifying a Range of Acceptable Values86
Limiting the Length of a Simple Type88
Limiting a Number's Digits89
Creating List Types90
Predefining an Element's Content91
Chapter 7Defining Complex Types93
Defining Elements to Contain Only Elements94
Requiring Elements to Appear in Sequence95
Creating a Set of Choices96
Allowing Elements to Appear in Any Order97
Defining Named Groups98
Referencing a Named Group99
Referencing Already Defined Elements100
Controlling How Many101
Defining Elements to Contain Only Text102
Defining Empty Elements103
Defining Elements with Mixed Content104
Basing Complex Types on Complex Types105
Declaring an Element of Complex Type106
Elements with Anonymous Complex Types107
Declaring Attributes108
Requiring an Attribute109
Predefining an Attribute's Content110
Defining Attribute Groups111
Referencing Attribute Groups112
Chapter 8Using Namespaces in XML113
Designing a Namespace Name114
Declaring Default Namespaces115
Namespaces for Individual Elements116
How Namespaces Affect Attributes118
Namespaces, DTDs, and Valid Documents119
Chapter 9Namespaces, Schemas, and Validation121
Schemas and Namespaces122
Populating a Namespace123
Adding All Locally Declared Elements124
Adding Particular Locally Declared Elements125
Referencing Components with Namespaces126
The Schema of Schemas as the Default128
Namespaces and Validating XML129
Indicating Where a Schema Is130
Schemas in Multiple Files131
Importing Components132
Part 4XSLT and XPath
Chapter 10XSLT135
Transforming XML with XSLT136
Beginning an XSLT Style Sheet138
Creating the Root Template139
Outputting HTML Code140
Outputting a Node's Content142
Creating and Applying Template Rules144
Batch-Processing Nodes146
Processing Nodes Conditionally148
Adding Conditional Choices149
Sorting Nodes Before Processing150
Generating Attributes151
Chapter 11XPath: Patterns and Expressions153
Determining the Current Node154
Referring to the Current Node155
Selecting a Node's Children156
Selecting a Node's Parent or Siblings157
Selecting All of the Descendants158
Disregarding the Current Node159
Selecting a Node's Attributes160
Selecting Subsets161
Chapter 12Test Expressions and Functions163
Comparing Two Values164
Testing the Position165
Subtotaling Values166
Counting Nodes167
Multiplying, Dividing, Adding, Subtracting168
Formatting Numbers169
Rounding Numbers170
Extracting Substrings171
Capitalizing Strings173
Part 5Cascading Style Sheets
Chapter 13Setting up CSS177
CSS with XML vs. CSS with HTML178
CSS1, CSS2, and Browsers178
The Anatomy of a Style179
Specifying Where Styles Are To Be Applied180
Creating an External Style Sheet182
Calling a Style Sheet for an XML Document184
Calling a Style Sheet for an HTML Document186
Using Internal Style Sheets187
Applying Styles Locally188
Chapter 14Layout with CSS189
Defining Elements as Block-Level or Inline190
Hiding Elements Completely191
Offsetting Elements In the Natural Flow192
Positioning Elements Absolutely193
Setting the Height or Width for an Element194
Setting the Border195
Adding Padding Around an Element196
Setting the Margins around an Element197
Wrapping Text around Elements198
Stopping Text Wrap199
Changing the Foreground Color200
Changing the Background201
Positioning Elements in 3D202
Aligning Elements Vertically203
Determining Where Overflow Should Go204
Clipping an Element205
Setting List Properties206
Specifying Page Breaks208
Chapter 15Formatting Text with CSS209
Choosing a Font Family210
Embedding Fonts on a Page211
Creating Italics212
Applying Bold Formatting213
Setting the Font Size214
Setting the Line Height215
Setting All Font Values at Once216
Setting the Text Color217
Changing the Text's Background218
Controlling Spacing219
Aligning Text220
Underlining Text221
Changing the Text Case222
Part 6XLink and XPointer
Chapter 16Links and Images: XLink and XPointer225
Creating a Simple Link226
Creating a Linkset228
Defining Reference Points229
Defining Connections230
Using a Linkset232
Linking to Part of a File233
Creating the Simplest XPointer234
Creating Walking XPointers235
Creating an XPointer Range236
Appendices
Appendix AXHTML239
How Does a Browser Know?240
Writing XHTML241
Declaring a DTD for XHTML242
Appendix BXML Tools243
Validating XML Files against a DTD244
Validating XML with a Schema245
Transforming XML with an XSLT Processor246
Appendix CSpecial Symbols247
Using Character References248
Table ICharacters249
Table IISymbols250
Appendix DColors in Hex251
Finding a Color's RGB Components--in Hex252
Hexadecimal Equivalents253
The Hexadecimal System253
Index, Colophon, and Note
Index255
Colophon and Note270

Customer Reviews

Average Review:

Write a Review

and post it to your social network

     

Most Helpful Customer Reviews

See all customer reviews >