search for books and compare prices
Tables of Contents for Professional Asp Xml
Chapter/Section Title
Page #
Page Count
Introduction
1
1
What Does this Book Cover?
1
1
Who Is this Book For?
2
1
How is this Book Structured?
2
3
Introduction to XML
2
1
Working with XML and ASP
2
2
Case Studies
4
1
Reference Appendices
5
1
What You Need to Use this Book
5
1
Conventions
6
1
Tell Us What You Think
7
2
Introduction to eXtensible Markup Language
9
16
ASP & XML?
10
1
A Word on Markup Languages
10
2
Our old friend markup
10
1
How Markup Works
11
1
Languages and Metalanguages
12
1
HTML's Place in the Universe
12
1
In Walks XML
13
9
More than A Little Something for the Web
13
2
The Self-Describing Document
15
1
A Well-formed Document
15
1
A Valid Document
16
1
Getting Started with XML
16
1
You Only Need a Text Editor
16
1
The Document Element
17
1
The XML Processor
17
1
Internet Explorer 5.0 and XML
17
1
Parents, Children, Grand Children, and so on...
18
1
Anatomy of an Error
19
1
Incorporating Multiple Records
20
2
Summary
22
3
Understanding XML Structure and Syntax
25
12
XML Structure
26
9
Logical Structure
26
1
The Prolog
26
2
The Document Element
28
1
XML Syntax
29
1
Tags
29
1
Naming Conventions
29
1
Open, Close, and Empty
30
1
Elements
30
1
Child Elements
30
1
Nesting
30
1
Improper Nesting
31
1
Comments
31
1
Attribute
32
1
Special Attributes
33
1
CDATA
33
1
Processing Instructions
34
1
Entities
34
1
Character References
34
1
Entity References
35
1
Well-Formed Documents
35
1
Summary
35
2
Validating XML with the DTD
37
18
Introducing the DTD
38
1
Defining a DTD
39
13
The Basic Structure
40
1
A Simple DTD
40
1
The Element Declarations
41
1
The ANY Rule
41
1
The EMPTY Rule
42
1
The Mixed Declaration
42
1
The Multiple Declaration
42
1
The #PCDATA Rule
43
1
Grouping, Occurrence and Element Symbols
43
1
The Attribute Declarations
44
1
Attribute Types
45
1
Defaults
46
1
The ENTITY Declarations
46
1
General or Internal Entities
46
1
External Entities
47
1
Parameter Entities
47
1
Other DTD Keywords
48
1
IGNORE and INCLUDE
48
1
Comments
49
1
Combining Internal and External DTDs
49
1
Client-Side Validation
50
1
Server-Side Validation
50
2
Summary
52
3
Validating XML using Schemas
55
18
The Components of a Schema
56
14
Using Namespaces
58
1
Using Multiple Schemas
59
1
Complex Type Definitions
60
1
Using Existing Type Definitions
60
1
Simple Types
61
2
Facets
63
1
The Pattern Facet
64
1
The Enumeration Facet
64
1
Attributes
65
1
The Content Attribute
66
1
Groups
67
1
Derivation
68
1
Annotations
69
1
DTD vs. Schemas
70
1
Summary
70
3
Document Object Model
73
38
Uses of the DOM
74
2
Multi-Use Content Publishing
74
1
Platform Neutral Data Exchange
75
1
Business Components
75
1
Getting the Right Parser
76
1
Internet Explorer
76
1
MSXML Redistributable
76
1
Included with Windows
77
1
MSXML 2.6: A Preview
77
1
MSXML and the W3C XML DOM
77
2
W3C Interfaces
78
1
Survey of MSXML Interfaces
79
13
Documents
80
5
Nodes
85
3
Node Lists
88
1
Named Node Maps
88
1
Error Handling
89
1
Additions and Changes in the Technology Preview
90
1
On-Demand Validation
91
1
Schema and Stylesheet Caching
91
1
XSLT/XPath Support
91
1
Tasks
92
16
Parser Creation
92
1
Document Loading and Validation
93
1
Tree Traversal
94
1
NodeLists
94
1
Getting at an Element's Text
95
2
Siblings
97
1
Path-Based Selection
97
3
ID and IDREF Relationships
100
1
Content Creation
101
1
Setting the MIME Type
102
1
New Documents
103
1
Elements
103
2
Subtree Cloning
105
1
Attributes
105
1
Other Constructs
106
1
Returning the Document
107
1
Summary
108
3
Integrating XML with ASP
111
22
How do ASP and XML Fit Together?
112
3
Using the DOM
112
1
Server-Side Includes
113
1
FileSystemObject
114
1
Examples of Processing XML using ASP Code
115
15
Sending Data Directly to the Browser
115
1
Saving Data as HTML
116
1
Styling XML Data
117
1
Using XML to Store Web Links and Property Settings
118
4
Using ASP to Manipulate XML Documents
122
1
Defining the Functions
122
3
Testing the Functions
125
1
The ``XML Brain''
125
1
Editing the Settings File (or Brain...)
126
3
The Colorpicker Example
129
1
Summary
130
3
Using CSS with XML
133
42
XML versus HTML
134
1
Introducing Cascading Stylesheets
134
10
Some CSS Basics
135
1
CSS and HTML
135
1
Selectors
135
3
Boxes and the display Property
138
1
padding, margin and border
138
2
Units, Em and You
140
1
Inheritance and Cascading
141
1
Inheritance
141
1
Cascading
142
2
CSS and XML
144
6
Associating CSS with XML Documents
145
1
Linking to External Stylesheets
145
1
Embedded Stylesheets
145
2
Media-specific Styles
147
1
Linked Stylesheets
148
1
Mixed Media Styles
148
2
Putting it all Together
150
2
A More Advanced Example
152
7
Underwater what?
152
4
Behaviors
156
1
The Toggle Behavior
157
2
CSS and XSL: A Comparison
159
5
With HTML
160
1
With XML
160
1
Transformation Language
160
1
Client or Server
161
1
The Benefits of CSS
162
1
CSS and XSL Working Together
163
1
Mozilla & Netscape 6
164
6
Mozilla, Gecko, Seamonkey, What's It All About?
164
1
Standards Compliance
165
1
XUL and Chrome
166
1
Why Bother with XUL at All?
166
1
An Introduction to XUL
166
1
Directory and File Structure
166
1
Custom Search
167
3
DTDs and Localisation
170
1
Other Uses for XML and CSS
170
2
A Quick Look at SVG
171
1
Summary
172
3
XSL -- Extensible Stylesheet Language
175
26
Using XSL Stylesheets
176
5
How XSL Works
176
3
Connecting XML to XSL
179
1
Programmatic XSL Transformations
179
2
XSL Stylesheets
181
12
Templates
184
1
Finding Data with Patterns
185
2
XSL Information Methods
187
1
XSL Operators
187
1
Taking Action: Template Bodies
188
1
xsl:for-each
189
1
xsl:choose, xsl:when, xsl:otherwise
190
1
xsl:apply-templates
191
1
xsl:if and xsl:attribute
191
1
xsl:value-of
191
1
The Complete Stylesheet
192
1
XSL Methods
193
3
XSL Queries
196
3
Based on Elements
196
1
Based on Attributes
197
1
Sorting Data
198
1
Summary
199
2
Advanced XSL Techniques
201
26
Enhancing ASP with XSL
202
1
Transforming XML using XSL and ASP
203
6
XSL Templates Revisited
203
2
XSL Transforms XML
205
1
Using the FileSystemObject Again
206
2
Logical XSL
208
1
Incorporating Scripting and Logic into XSL
209
14
Requirements for the Collapsing Navigation Tree
210
1
Start with HTML
211
1
Structure of the ASP
212
1
Client-Side Script for DHMTL Effects
213
3
XML Source
216
1
XSL Stylesheet
217
5
The Finished Product
222
1
Transforming other XML
222
1
Summary
223
4
Case Study: Data-Driven XSL
227
12
Introduction
227
1
Meet the Puzzle Pieces
228
1
The Data
228
2
Generating the XSL
230
4
The Test Page
234
2
Summary
236
3
Integrating ADO and XML
239
20
Deciding on ADO, XML, or Both
240
1
ADO and ASP
241
7
ADO Objects
242
1
ADO Data in XML
243
1
Obtaining XML from ADO
243
2
The ADO XML-Data Schema
245
3
Persistence
248
6
ADO Persistence
249
1
Persisting to a File
250
1
Persisting to Streams
251
1
Persisting from the Request Object
252
2
ADO with Style
254
2
Server Side Style
255
1
Summary
256
3
Client-side Data Binding with XML
259
20
What is Data Binding?
259
5
Data-Management Techniques on the Web
260
1
Data-Binding Technology in Internet Explorer 4 and 5
260
1
The Microsoft Remote Data Service (RDS)
261
1
Data Source Objects for XML
262
2
Source Data Updates with XML
264
1
Displaying XML with Data Binding
264
13
Binding Elements to the Cached Data
265
1
The HTML Elements Used in Data Binding
265
2
Types of Data Binding
267
1
Tabular Data Binding
267
5
Single Record Data Binding
272
1
Data Binding Events
273
2
Accessing Data in a DSO with Script
275
1
XML Data Binding in IE5 with Attributes
275
2
Summary
277
2
Working with XML Data Binding
279
22
Creating XML Documents Dynamically
279
11
Creating XML Documents from a Data Store
279
1
Creating XML with ASP Script
280
3
Creating XML with a Custom Component
283
1
Creating XML with the ADO Persistence Methods
283
5
Creating XML with the SQLXML Technology Preview
288
2
Updating the Source XML Document
290
9
Updating with ASP script and the MSXML Component
290
2
Updating with a Custom Component
292
3
Managing Concurrent Updates
295
1
Updating with the ADO Persistence Methods
296
1
Posting XML Documents to a Stream
297
1
Updating with the SQLXML Technology Preview
297
2
Summary
299
2
Creating XML Procedure Libraries
301
36
The Contents of Our Procedure Library
302
8
A Test Page for the Library Procedures
302
1
The Structure of the Test Page
302
1
About the Procedure Library Include File
303
1
Reading and Writing Text Files
303
1
Reporting Status and Logging Errors
304
1
Procedures for Working with XML Documents
304
1
The Procedure Library File in Outline
305
4
Include File Issues in ASP Pages
309
1
ASP Compiled Code Caching
309
1
Using a Central Library Repository
309
1
The Procedure Functions in Detail
310
25
The CreateScriptingObject Function
310
1
The WriteToLogFile Subroutine
311
1
The GetAbsoluteFilePath Function
311
4
The WriteToFile Function
315
3
The ReadFromFile Function
318
3
The BuidXMLProlog Function
321
2
The LoadAndParseXML Function
323
3
The GetNodesFromXML Function
326
4
The TransformXML Function
330
4
The Error Log File
334
1
Summary
335
2
Working with Emerging Standards in XML Technologies
337
32
Schema Repositories
337
11
The Problem with ``Roll Your Own'' Tags
338
1
What are Schema Repositories?
338
1
Why Do We Need Them?
338
1
Benefits of Schema Repositories
339
1
Business Resistance to Schema Repositories
339
1
Currently Existing Schema Repositories
339
1
BizTalk
340
1
OASIS / XML.ORG
340
1
Do You Have to Choose?
341
1
The BizTalk.org Schema Repository
341
1
Schema Registration
341
1
The BizTalk Framework
342
1
Anatomy of a BizTalk Document
342
1
A Sample BizTalk Message
343
1
Delivery Section
344
2
Manifest Section
346
1
Body Section
347
1
Extending the BizTalk Framework
347
1
BizTalk Framework Summary
348
1
Transmitting XML over the Wire
348
18
Client Origination
348
4
Summary of XMLHttpRequest
352
1
What is SOAP?
352
1
Conversation and Message Types
353
1
The Envelope Please
353
2
The SOAP Header
355
1
Who's Fault?
355
1
Serving It Up
356
1
Security
356
1
Encoding Data
357
1
Sample Application
357
1
Layout of the Client-Side Page
358
1
Drilling Into Code
359
6
Talking About Problems-SOAP Style
365
1
Transparent Proxies
365
1
Summary of SOAP Example
365
1
Learning More
365
1
Summary
366
3
Case Study -- On-Line Survey Tool
369
78
What are we doing here, anyway?
369
3
Who is this Case Study for?
370
1
Which technology will we use?
370
1
Glossary of Terms
370
1
Design Considerations
371
1
Requirements and Parameters
371
1
Site Overview
372
1
Sections
372
1
Survey Creation
372
54
Entity Definition
372
1
Survey
372
2
What is a Question?
374
3
Free-Form Questions
377
1
Attributes for Free-Form Questions
378
3
Multiple-Choice Questions
381
5
Attributes for Multiple-Choice Questions
386
5
Let's Start Coding!
391
1
Technologies
391
1
Directory structure
391
1
Support Files
391
3
Survey Creation Tool (createsurvey.asp)
394
17
Let's Create a Survey!
411
2
Taking a Survey (takesurvey.asp)
413
4
Showing a Survey
417
9
Reporting (showreport.asp)
426
17
XML Schema for Responses
426
6
XSL Transformation for a Basic Report
432
2
Database Schema for Storing Report Definitions
434
9
Where to now?
443
4
Survey Creation
443
1
Survey Delivery
444
1
Reporting
444
1
And Finally...
445
2
Case Study -- An On-line Documentation System
447
46
Architectural Overview
448
2
The Left / Middle Systems - Overview
448
1
The Right System - Overview
449
1
The Systems
450
40
The isComponentMgr System
450
2
The XML Data File
452
1
The Right System
453
1
The ASP Files
453
1
The Home Page
454
2
The Admin Page
456
20
The Reports Page
476
4
The Reports
480
10
Summary
490
3
Case Study -- An Online Shopping Cart
493
30
Shopping Cart Design
494
2
Data Persistence
494
1
Our Shopping Cart Application
495
1
The Technology Set-Up
495
1
Other Technical Requirements
496
1
Setting up the Cart Environment
496
25
The Product & Customer DataBase - ShopCart
497
1
Database Definition
497
3
Creating a New Cart and Adding Items to a Cart
500
1
Displaying the Cart's Contents
501
1
Deleting Items and Updating Shopping Cart Contents
501
1
Emptying the Cart
502
1
The ASP Code
502
1
The Store Front
503
5
Inside the Shopping Cart
508
3
Cart Contents Screen
511
7
Checkout Screen
518
3
Summary
521
2
Case Study -- Workflow Application
523
46
What is Workflow?
524
3
Workflow Application Structure
525
2
Project Description - A Workflow Framework
527
4
Project Vision
527
1
Functional Requirements
527
1
Use Cases
528
2
Functional Requirements
530
1
Technical Requirements
531
1
Application Design
531
35
Solution Statement
531
1
XML Design
531
1
Role of XML
531
1
Contents
532
5
XSL Design
537
1
ASP Design
537
2
Workflow Engine Design
539
1
The Workflow Manager Class
540
1
The Step Manager
540
1
Application Messaging
541
1
Implementation
542
1
Database Model
542
5
ASP Code
547
12
COM+ Components
559
7
Summary
566
3
Case Study -- Using XML and TIP for Distributed Web Transactions
569
54
Business Needs
570
1
The Application Domain
570
1
Constraints
571
1
Solution Analysis
571
4
Use Cases
571
1
Sequence Diagrams
572
1
Presenting a Vehicle List
573
1
Registering the Client Order
574
1
Solution Design
575
11
Infrastructure Design
575
1
The Presenter, the Confirm, and the Submit ASP Pages
576
1
The Cars Catalog
576
1
The Transaction Broker
576
1
The TIP Transaction Factory
577
1
The XML Bridge Client
577
1
The ASP Dispatcher
577
1
The XML Bridge Server
577
1
The COM Broker
578
1
The Car Producer Business Component
578
1
Encapsulation All Around
579
1
Exposing Business Logic Through XML
579
1
Wire Protocol
580
1
Transaction Protocol
580
1
Technology Background
581
1
XML-RPC
581
1
TIP
581
5
Deep Into The Code
586
34
The Presenter ASP Page
586
2
The Confirm ASP Page
588
1
The Submit ASP Page
589
2
The Cars Catalog
591
1
The Transaction Broker
591
2
The TIP Transaction Factory
593
2
The XML Bridge Client
595
14
The ASP Dispatcher
609
1
The XML Bridge Server
609
5
The COM Broker
614
5
The Car Producer Business Component
619
1
Security Wrap Up
620
1
Summary
621
2
Case Study -- Data Transfer
623
26
Introduction
623
24
The Purchase Order Form
626
8
The Purchase Order Processor
634
4
The Fulfillment Form
638
9
Summary
647
2
Appendix A: Extensible Markup Language (XML) 1.0 Specification
649
33
Abstract
649
1
Status of this document
650
1
Extensible Markup Language (XML) 1.0
650
1
Table of Contents
650
1
Appendices
651
1
1. Introduction
651
2
1.1 Origin and Goals
652
1
1.2 Terminology
652
1
2. Documents
653
10
2.1 Well-Formed XML Documents
654
1
2.2 Characters
654
1
2.3 Common Syntactic Constructs
655
1
2.4 Character Data and Markup
656
1
2.5 Comments
656
1
2.6 Processing Instructions
657
1
2.7 CDATA Sections
657
1
2.8 Prolog and Document Type Declaration
658
2
2.9 Standalone Document Declaration
660
1
2.10 White Space Handling
661
1
2.11 End-of-Line Handling
661
1
2.12 Language Identification
662
1
3. Logical Structures
663
8
3.1 Start-Tags, End-Tags, and Empty-Element Tags
664
1
3.2 Element Type Declarations
665
1
3.2.1 Element Content
666
1
3.2.2 Mixed Content
666
1
3.3 Attribute-List Declarations
667
1
3.3.1 Attribute Types
668
1
3.3.2 Attribute Defaults
669
1
3.3.3 Attribute-Value Normalization
670
1
3.4 Conditional Sections
670
1
4. Physical Structures
671
9
4.1 Character and Entity References
672
1
4.2 Entity Declarations
673
1
4.2.1 Internal Entities
673
1
4.2.2 External Entities
674
1
4.3 Parsed Entities
675
1
4.3.1 The Text Declaration
675
1
4.3.2 Well-Formed Parsed Entities
675
1
4.3.3 Character Encoding in Entities
675
1
4.4 XML Processor Treatment of Entities and References
676
1
4.4.1 Not Recognized
677
1
4.4.2 Included
677
1
4.4.3 Included If Validating
677
1
4.4.4 Forbidden
678
1
4.4.5 Included in Literal
678
1
4.4.6 Notify
678
1
4.4.7 Bypassed
678
1
4.4.8 Included as PE
678
1
4.5 Construction of Internal Entity Replacement Text
678
1
4.6 Predefined Entities
679
1
4.7 Notation Declarations
679
1
4.8 Document Entity
680
1
5. Conformance
680
1
5.1 Validating and Non-Validating Processors
680
1
5.2 Using XML Processors
681
1
6. Notation
681
1
Appendices
682
11
A. References
682
1
A.1 Normative References
682
1
A.2 Other References
683
1
B. Character Classes
683
3
C. XML and SGML (Non-Normative)
686
1
D. Expansion of Entity and Character References (Non-Normative)
686
2
E. Deterministic Content Models (Non-Normative)
688
1
F. Autodetection of Character Encodings (Non-Normative)
688
2
G. W3C XML Working Group (Non-Normative)
690
3
Appendix B: Microsoft XML v3.0 Reference
693
48
Appendix C: IE5 XSL Reference
741
16
The IE5 XSL Elements
741
6
XSL Stylesheet Structure
743
1
Creating New Nodes in XSL
744
1
XSL Stylesheet Runtime Methods
744
3
The IE5 XSL Pattern-Matching Syntax
747
10
Node Position and Hierarchy
747
1
Node Index Position
748
1
XSL Filters and Filter Patterns
748
1
Filter Patterns
748
2
Comparison Operators
750
1
Logical Filter Operators
751
1
Filter Set Operators
752
1
XSL Built-In Methods
753
1
The Information Methods
753
1
The Collection Methods
753
1
Important Note
754
3
Appendix D: Style Sheet Properties
757
16
Units of Measurement
757
1
Listing of Properties
758
1
Font Properties
758
1
Color and Background Properties
759
2
Text Properties
761
3
Size and Border Properties
764
5
Printing Properties
769
1
Other Properties
770
1
IE4/5 Unsupported CSS Properties
770
1
Navigator 4 Unsupported CSS Properties
770
3
Appendix E: SAX 1.0: The Simple API for XML
773
24
Class Hierarchy
773
18
Interface org.xml.sax.AttributeList
774
2
Interface org.xml.sax.DocumentHandler
776
3
Interface org.xml.sax.DTDHandler
779
1
Interface org.xml.sax.EntityResolver
780
2
Interface org.xml.sax.ErrorHandler
782
1
Class org.xml.sax.HandlerBase
783
2
Class org.xml.sax.InputSource
785
3
Interface org.xml.sax.Locator
788
1
Interface org.xml.sax.Parser
789
2
Class org.xml.sax.SAXException
791
6
Class org.xml.sax.SAXParseException
792
5
Appendix F: XPath, XLink, and XPointer
797
18
XPath
797
6
The Context Node
798
1
Axes
798
1
Node-Tests
799
1
Some XPath Examples
799
1
Absolute and Relative Paths
799
1
Shorthand Forms
800
1
Predicates
800
1
XPath Functions
800
3
XLink
803
7
HTML Linking Limitations
803
1
XLink Design
804
1
XLink Attributes
804
2
Types of Links
806
1
Simple Link
806
1
Extended Link
807
3
XPointer
810
3
Pointers in HTML
810
1
Using XPointer
810
1
XPointer Extensions to XPath
811
1
XPointer Functions
812
1
Summary
813
2
Appendix G: IE5 XML Schemas and Data Types
815
12
XML Schemas
815
6
IE5 XML Schema Elements
816
4
The IE5 XML Schema Structure
820
1
XML Datatypes
821
6
Primitive XML Data Types
824
3
Appendix H: XML Preview for SQL Server
827
14
Installation
827
4
Virtual Directory Configuration
828
1
Security
829
1
Data Source
829
1
Access Type Settings
830
1
Advanced
831
1
URL Queries
831
3
Template Queries
834
3
Using Parameters
836
1
Object Access
837
2
Update Grams
838
1
Summary
839
2
Appendix I: Support and Errata
841
8
Index
849