Cover image for Project cool guide to XML for Web designers
Title:
Project cool guide to XML for Web designers
Author:
Martin, Teresa A., 1961-
Personal Author:
Publication Information:
New York : John Wiley, [1999]

©1999
Physical Description:
xxi, 298 pages : illustrations ; 24 cm
Language:
English
ISBN:
9780471344018
Format :
Book

Available:*

Library
Call Number
Material Type
Home Location
Status
Central Library QA76.76.H94 M277 1999 Adult Non-Fiction Central Closed Stacks
Searching...

On Order

Summary

Summary

A complete webmaster's and web designer's guide to exploiting XML's full capabilities for presenting data.

Project Cool(TM) Guide to XML for Web Designers.

Internationally renowned web developer Teresa A. Martin gets you up to speed on what XML is, how it works, how it fits in with other web design and development tools, and how, when, and why to incorporate it into your web site. Project Cool Guide to XML for Web Designers is the only XML guide geared specifically to the needs of webmasters and designers, and offers clear step-by-step guidance for integrating the XML process-from DTDs, parsing, and assigning style data to displaying a page in web browsers. You get all the background information and working examples you need to:
* Master the XML syntax to create well-formed and valid documents.
* Build a simple DTD and create elements and attributes lists.
* Attach styles to an XML document and display it in a web page.
* Work with XML and the 5.X browsers to display pages more powerfully.
* Use the new Document Object Model (DOM).
* Learn about the new XSL specification, CSS, and IE5 behaviors.

On the companion web site at www.projectcool.com/guide/xml you'll find:
* A live demo that lets you see XML in action.
* Regular updates on emerging XML specifications and applications.
* Working examples of XML solutions.
* Visual glossaries.

Visit our web site at www.wiley.com/compbooks/


Author Notes

TERESA A. MARTIN is the cofounder of Project Cool, the online resource for webmasters, and a celebrated interactive media guru.


Table of Contents

Forewordp. xi
Acknowledgmentsp. xiii
Introductionp. xv
Chapter 1 The Structured Documentp. 1
HTML Pastp. 1
Documentsp. 2
Structurep. 4
Structure versus Formatp. 5
Enter SGMLp. 6
Exit SGMLp. 9
The Structured Modelp. 10
Exploring Structurep. 11
Example: Rigid Structurep. 12
Example: Internal Structurep. 16
Structure Benefitsp. 19
Customized Meaningp. 20
Getting to Structurep. 21
Step 1 Planning and Analysisp. 21
Step 2 DTD Writingp. 23
Step 3 Marking up Your Documentsp. 24
Tying Structure to Displayp. 25
Summaryp. 26
Chapter 2 What Is XML?p. 29
Data about Datap. 29
EXtensiblep. 30
Markupp. 33
Languagep. 37
Nouns and Adjectivesp. 38
Syntaxp. 39
XML versus HTMLp. 41
A Brief History of XMLp. 43
But What Does XML Actually Do?p. 46
Summaryp. 48
Chapter 3 The Document Object Modelp. 49
Document Object Modelp. 50
The Pizza Analogyp. 50
Objectsp. 51
APIp. 52
DOM and DHTMLp. 53
DOM and JavaScriptp. 56
DOM and XMLp. 58
DOM and CSSp. 60
Interactionp. 60
The DOM Specificationp. 62
A Brief History of the DOMp. 64
Using the DOMp. 66
Summaryp. 67
Chapter 4 The Standards Processp. 69
Standards Fill a Needp. 70
Standards Come from Peoplep. 72
Lauren Woodp. 72
Jean Paolip. 73
Tim Brayp. 74
Mary Fernandezp. 74
Jeffrey Veenp. 75
The W3Cp. 76
The W3C Process (or How an Idea Becomes a Standard)p. 77
Submissions to Notesp. 78
Working Groups and Working Draftsp. 78
Proposed Recommendations to W3C Recommendationsp. 80
Standards Supportp. 80
What Say Do I Have?p. 81
Summaryp. 81
Chapter 5 Alphabet Soupp. 83
Extensionsp. 84
A Word about Statusp. 84
Guide to the Proposalsp. 85
Markupp. 85
SGMLp. 89
HTMLp. 92
XMLp. 92
Stylep. 92
CSS1 and CSS2p. 93
XSLp. 95
DSSSLp. 97
HTCp. 97
DHTMLp. 97
Structure Rule Setsp. 98
Structure Rules in SGML, XML, and HTMLp. 99
Schemasp. 100
DTDp. 100
DDMLp. 101
XML Datap. 103
DCDp. 103
Processingp. 103
DOMp. 104
XML NSp. 104
Linkingp. 106
XPointerp. 106
XLinkp. 107
Queryingp. 108
XML-QLp. 108
XQLp. 109
Metadatap. 109
RDFp. 110
Application-Specific XMLp. 111
XFDLp. 112
SMILp. 112
Ad Markupp. 112
ICEp. 112
Math MLp. 112
Summaryp. 113
Chapter 6 XML Document Basicsp. 115
XML Alone Does Nothingp. 115
XML Is Not about Displayp. 117
Well-Formed versus Valid Filesp. 117
Before You Create a Documentp. 118
Know Your Datap. 118
Know Your DTDp. 119
Elementsp. 120
Attributesp. 121
What Exactly Is and XML Document?p. 122
Declarationsp. 122
Marked-Up Textp. 123
Commentsp. 123
XML Syntaxp. 123
XML Tags Begin with [ and End with ], Just Like HTMLp. 123
XML Tags Surround the Elements They Mark Upp. 124
All Tags Must Closep. 124
Empty Tags Must Close, Toop. 124
XML Is Case Sensitivep. 125
Nest Tags Properlyp. 125
Quote Attribute Valuesp. 125
XML Toolsp. 126
Summaryp. 127
Chapter 7 Creating Well-Formed and Valid XML Documentsp. 129
Parsersp. 129
Well-Formed XMLp. 130
Creating a Well-Formed XML Documentp. 131
The Full XML Declarationp. 132
Valid XMLp. 132
More about DTDsp. 133
Creating a Valid XML Documentp. 134
The Full XML Declarationp. 134
The DOCTYPE Declarationp. 135
Putting DTD Data into the DOCTYPE Definitionp. 136
Types of Element Datap. 139
Attribute Listsp. 141
Parsing an XML Filep. 143
Summaryp. 147
Chapter 8 Other Pieces of an XML Documentp. 149
Commentsp. 149
CDATAp. 150
CDATA in an Attribute Listp. 150
CADTA Sections in a Documentp. 150
Entitiesp. 153
Entities Save Typing for Repeated Contentp. 154
Entities Minimize Potential Errorsp. 154
Entities Are Easy to Updatep. 154
Entities Can Be Placeholdersp. 155
Predefined Entitiesp. 155
Internal Entitiesp. 155
External Entitiesp. 156
Nontext Entitiesp. 156
Defining Entitiesp. 156
Using Entitiesp. 157
Namespacesp. 158
Declaring Namespacesp. 159
Using Namespacesp. 160
Summaryp. 160
Chapter 9 Understanding a DTDp. 163
Document Treesp. 163
Parsers and Applicationsp. 166
Parts of a DTDp. 166
To DTD or Not to DTD?p. 167
Large Document Set?p. 168
Very Specific Needs?p. 168
Industry Needs?p. 168
Small Set, Single Creator?p. 168
Finding a DTDp. 169
Share Existing DTDsp. 169
Roll Your Ownp. 169
Internalizep. 170
Reading a DTDp. 170
Read the Commentsp. 170
Look for Basic Elementsp. 171
Read the Element Declarationsp. 171
Look for Parent/Child Relationshipsp. 172
Look for the Element's Datap. 172
Look for Element Attributesp. 177
Read the Attribute Listsp. 178
Explore an Examplep. 181
Check for Entitiesp. 185
Check for Notationsp. 186
Summaryp. 187
Chapter 10 Creating a DTDp. 189
The DTD Processp. 190
Sketch Out Your Structurep. 190
Start the Filep. 190
Use Commentsp. 191
Set the Doctype Declarationp. 191
Create Elementsp. 192
Element Rulesp. 192
Free-Form Elementsp. 193
Textual Elementsp. 193
Elements within Elementsp. 194
Element within Element Rulesp. 194
Mixing Text and Specific Elementsp. 201
Empty Elementsp. 202
Create Attribute Listsp. 202
Attribute Valuesp. 203
Attribute Defaultsp. 205
Entitiesp. 207
Declaring Entitiesp. 207
Using Entitiesp. 208
Notationsp. 209
Ignore and Include Sectionsp. 209
Creating an Internal DTDp. 210
Examplep. 210
Using the DOCTYPE Declarationp. 211
Summaryp. 211
Chapter 11 Under the Hood: A Simple XML Examplep. 213
Our Examplep. 213
Understanding Your Datap. 213
What Top-Level Pieces Appear?p. 215
What Smaller Pieces Appear?p. 215
Do Similar Subelements Appear?p. 216
What Information Do You Want to Know about the Element?p. 217
Do You Want to Require That the Element Be Used?p. 217
How Many Times Do You Want This Piece to Appear?p. 217
DTD Buildingp. 218
Understand the Peoplep. 218
Learning Curvep. 219
Document What You've Donep. 221
Our Example DTDp. 221
Making the XML Documentp. 223
Parsing the Documentp. 224
Displaying the Documentp. 227
Summaryp. 231
Chapter 12 Displaying an XML Documentp. 233
A Tiny Tastep. 234
Style Optionsp. 236
XSLp. 237
CSS1 and CSS2p. 237
HTCp. 237
XSL versus CSSp. 238
CSS Is in Use Today; XSL Will Be Used Tomorrowp. 238
XSL Goes Further than CSSp. 239
CSS Defines Style; XSL Adds Transformation Powersp. 239
CSS Works with HTML and XML; XSL Focuses on XMLp. 239
CSS Isn't Contextual; XSL Isp. 240
Cascading Style Sheet Conceptsp. 240
What Is a Style?p. 240
What Is Cascading?p. 240
What Are Style Sheets?p. 242
A Style Sheet Examplep. 242
Creating a CSS Style Sheetp. 244
ASCII Text Filep. 245
Style Propertiesp. 245
Style Rulesp. 247
Style Declarationsp. 247
Property Valuesp. 249
The Display Propertyp. 250
Connecting an XML File to a Style Sheetp. 252
A Few Practical Pointersp. 252
Start with a Checklistp. 252
Start at the Topp. 252
Remember the Display Propertyp. 253
Test, Test, Testp. 253
Summaryp. 253
Chapter 13 HTC Behaviorsp. 255
What a Behavior Doesp. 255
Support for Behaviorsp. 257
HTC Behavior Conceptsp. 260
Separate Content from Displayp. 260
Separate Skill Setsp. 262
Custom Tagsp. 262
Creating an HTCp. 263
Three Files, Three Skillsp. 263
The Content Filep. 263
The .css Filep. 264
The .htc Filep. 264
Chain Reactionp. 264
Steps in the Processp. 264
HTC Elementsp. 266
Element: [COMPONENT]p. 266
Element: [PROPERTY]p. 266
Element: [METHOD]p. 267
Element: [EVENT]p. 267
Element: [ATTACH]p. 268
HTC-Specific Elementsp. 268
Ondocumentreadyp. 268
Oncontentreadyp. 268
Summaryp. 271
Appendix A CSS Referencep. 273
Color and Background Propertiesp. 273
Colorp. 274
Bgcolorp. 274
Background-imagep. 274
Background-repeatp. 275
Background-attachmentp. 275
Background-positionp. 275
Fonts and Text Propertiesp. 276
Font-sizep. 276
Font-familyp. 276
Font-stylep. 277
Font-variantp. 277
Font-weightp. 277
Line-heightp. 278
Text-indentp. 278
Text-alignp. 279
Text-decorationp. 279
Text-transformp. 279
Letter-spacingp. 280
Word-spacingp. 280
Position and Visibility Propertiesp. 280
Positionp. 280
Leftp. 281
Topp. 281
Displayp. 282
Z-indexp. 282
Spacing and Area Propertiesp. 282
Clearp. 282
Floatp. 283
Heightp. 283
Widthp. 283
Border-color, border-style, border-widthp. 284
Border-top-width, border-bottom-width, border-right-width, border-left-widthp. 284
Border, border-top, border-bottom, border-right, border-leftp. 285
Margin, margin-top, margin-bottom, margin-right, margin-leftp. 285
Padding, padding-top, padding-bottom, padding-right, padding-leftp. 286
Appendix B The Companion Websitep. 287
Glossaryp. 289
Indexp. 293

Google Preview