Jacobs | Beginning XML with DOM and Ajax | E-Book | www.sack.de
E-Book

E-Book, Englisch, 456 Seiten

Jacobs Beginning XML with DOM and Ajax

From Novice to Professional
1. ed
ISBN: 978-1-4302-0177-9
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark

From Novice to Professional

E-Book, Englisch, 456 Seiten

ISBN: 978-1-4302-0177-9
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark



This book gives the most up-to-date picture of the topic-XML support in the most modern web browsers, creating XML-driven applications using the most versions of web standards and server-side languages, including CSS 2.1/3, DOM, XSLT and XPath 2, PHP 5, ASP.NET 2, and many more. The book shows that you can give the reader all they need to know to hit the ground running, without making them trawl through hundreds of pages of syntax. The book also provides an introduction to Ajax-style programming, which is an essential topic for modern web developers to understand. XML is core to Ajax, so an understanding of it is essential when learning how to program Ajax functionality. This book therefore provides a great stepping stone for readers wishing to take this path.

Sas Jacobs is a Web developer who loves working with Flash. She set up her business Anything Is Possible in 1994, working in the areas of web development, information technology training and technical writing. The business works with large and small clients building web applications with ASP.NET, Flash, XML and databases. Sas has also spoken at conferences such as Flash Forward, MXDU and FlashKit on topics relating to XML and dynamic content in Flash. In her spare time, Sas is passionate about travelling, photography and enjoying life. One of her most fervent wishes is that Flash will take over the Web!

Jacobs Beginning XML with DOM and Ajax jetzt bestellen!

Autoren/Hrsg.


Weitere Infos & Material


1;Contents;5
2;About the Author;12
3;About the Technical Reviewer;13
4;Acknowledgments;14
5;Introduction;15
6;Chapter 1 Introduction to XML;16
6.1;What Is XML?;17
6.1.1;A Brief History of XML;17
6.1.2;The Goals of XML;18
6.2;Understanding XML Syntax;19
6.2.1;Well-Formed Documents;19
6.2.2;Understanding the Difference Between Tags and Elements;20
6.3;Viewing a Complete XML Document;21
6.3.1;Understanding the Structure of an XML Document;22
6.3.2;Naming Rules in XML;23
6.3.3;Understanding the XML Document Prolog;24
6.3.4;Understanding Sections Within the XML Document Element;26
6.4;The XML Processing Model;31
6.4.1;XML Processing Types;32
6.4.2;DOM Parsing;32
6.4.3;SAX Parsing;32
6.4.4;Why Have Two Processing Models?;33
6.5;Some XML Tools;33
6.6;Summary;34
7;Chapter 2 Related XML Recommendations;35
7.1;Understanding the Role of XML Namespaces;35
7.1.1;Adding Namespaces to XML Documents;37
7.1.2;Adding Default Namespaces;37
7.2;Defining XML Vocabularies;38
7.2.1;The Document Type Definition;39
7.2.2;XML Schema;43
7.2.3;Comparing DTDs and Schemas;50
7.2.4;Other Schema Types;51
7.2.5;XML Vocabularies;51
7.3;Displaying XML;52
7.3.1;XML and CSS;53
7.3.2;XSL;53
7.4;XPath;58
7.4.1;XPath Expressions;59
7.4.2;Identifying Specific Nodes;60
7.4.3;Including Calculations and Functions;60
7.4.4;XPath Summary;61
7.5;Linking with XML;61
7.5.1;Simple Links;62
7.5.2;Extended Links;63
7.5.3;XPointer;64
7.5.4;XML Links Summary;65
7.6;Summary;65
8;Chapter 3 Web Vocabularies;66
8.1;XHTML;66
8.1.1;Separation of Presentation and Content;67
8.1.2;XHTML Construction Rules;69
8.1.3;XHTML Tools;79
8.1.4;Well-Formed and Valid XHTML Documents;80
8.1.5;XHTML Modularization;85
8.2;MathML;86
8.2.1;Presentation MathML;86
8.2.2;Content MathML;89
8.3;Scalable Vector Graphics;90
8.3.1;Vector Graphic Shapes;91
8.3.2;Text;94
8.3.3;Putting It Together;95
8.4;Web Services;99
8.4.1;WSDL;99
8.4.2;SOAP;105
8.5;Other Web Vocabularies;109
8.5.1;RSS and News Feeds;109
8.5.2;VoiceXML;110
8.5.3;SMIL;110
8.5.4;Database Output Formats;110
8.6;Summary;111
9;Chapter 4 Client-Side XML;112
9.1;Why Use Client-Side XML?;112
9.1.1;Working with XML Content Client-Side;113
9.1.2;Styling Content in a Browser;113
9.1.3;Manipulating XML Content in a Browser;114
9.1.4;Working with XML in Flash;115
9.2;Examining XML Support in Major Browsers;116
9.2.1;Understanding the W3C DOM;116
9.2.2;Understanding the XML Schema Definition Language;117
9.2.3;Understanding XSLT;117
9.2.4;Microsoft Internet Explorer;117
9.2.5;Adobe (Formerly Macromedia) Flash;128
9.3;Choosing Between Client and Server;129
9.3.1;Using Client-Side XML;130
9.3.2;Using Server-Side XML;130
9.4;Summary;133
10;Chapter 5 Displaying XML Using CSS;134
10.1;Introduction to CSS;135
10.1.1;Why CSS?;135
10.1.2;CSS Rules;135
10.2;Styling XHTML Documents with CSS;137
10.3;Styling XML Documents with CSS;142
10.3.1;Attaching the Stylesheet;143
10.3.2;Selectors;143
10.4;Layout of XML with CSS;144
10.4.1;Understanding the W3C Box Model;145
10.4.2;Positioning in CSS;148
10.5;Displaying Tabular Data;163
10.5.1;Working with Display Properties;163
10.5.2;Working with Floating Elements;165
10.5.3;Table Row Spans;167
10.6;Linking Between Displayed XML Documents;167
10.6.1;XLink in Netscape and Firefox;168
10.6.2;Forcing Links Using the HTML Namespace;170
10.7;Adding Images in XML Documents;171
10.7.1;Adding Images with Netscape and Firefox;171
10.7.2;Using CSS to Add an Image;172
10.8;Using CSS to Add Content;173
10.9;Working with Attribute Content;175
10.9.1;Using Attributes in Selectors;176
10.9.2;Using Attribute Values in Documents;177
10.10;Summary;179
11;Chapter 6 Introduction to XSLT;181
11.1;Browser Support for XSLT;181
11.2;Using XSLT to Create Headers and Footers;182
11.2.1;Understanding XHTML, XSLT, and Namespaces;184
11.2.2;Creating the XSLT Stylesheet;184
11.2.3;Understanding the Stylesheet;186
11.2.4;Transforming the Element;186
11.2.5;Applying the Transformation;187
11.2.6;Adding the Footer;187
11.2.7;Transformation Without Change;187
11.3;Creating a Table of Contents;188
11.3.1;Selecting Each Planet with ;191
11.3.2;Adding a New Planet;192
11.4;Presenting XML with XSLT;193
11.4.1;Moving from XHTML to XML;194
11.4.2;Styling the XML with XSLT;194
11.4.3;Removing Content with XSLT;196
11.4.4;Understanding the Role of XPath in XSLT;197
11.5;Including Images;198
11.5.1;Importing Templates;199
11.5.2;Including Templates;200
11.6;Tools for XSLT Development;200
11.7;Summary;202
12;Chapter 7 Advanced Client-Side XSLT Techniques;203
12.1;Sorting Data Within an XML Document;203
12.2;Sorting Dynamically with JavaScript;208
12.3;Adding Extension Functions (Internet Explorer);215
12.3.1;Understanding More About Namespaces;217
12.3.2;Adding Extension Functions to the Stylesheet;218
12.3.3;Providing Support for Browsers Other Than IE;221
12.4;Working with Named Templates;222
12.5;Generating JavaScript with XSLT;225
12.5.1;Understanding XSLT Parameters;227
12.5.2;Understanding White Space and Modes;227
12.5.3;Working Through the onelinehtml Template;229
12.5.4;Finishing Off the Page;230
12.5.5;Generating JavaScript in Mozilla;231
12.6;XSLT Tips and Troubleshooting;232
12.6.1;Dealing with White Space;232
12.6.2;Using HTML Entities in XSLT;234
12.6.3;Checking Browser Type;234
12.6.4;Building on What Others Have Done;235
12.6.5;Understanding the Best Uses for XSLT;235
12.7;Summary;236
13;Chapter 8 Scripting in the Browser;237
13.1;The W3C XML DOM;237
13.1.1;Understanding Key DOM Interfaces;239
13.1.2;Examining Extra Functionality in MSXML;250
13.2;Browser Support for the W3C DOM;253
13.2.1;Using the xDOM Wrapper;253
13.2.2;xDOM Caveats;258
13.3;Using JavaScript with the DOM;258
13.3.1;Creating DOM Document Objects and Loading XML;259
13.3.2;XSLT Manipulation;263
13.3.3;Extracting Raw XML;265
13.3.4;Manipulating the DOM;265
13.4;Putting It into Practice;269
13.4.1;Understanding the Application;269
13.4.2;Examining the Code;270
13.4.3;Dealing with Large XML Documents;274
13.5;Summary;276
14;Chapter 9 The Ajax Approach to Browser Scripting;277
14.1;Understanding Ajax;278
14.1.1;Explaining the Role of Ajax Components;278
14.1.2;Understanding the XMLHttpRequest Object;279
14.2;Putting It Together;288
14.2.1;Username Validation with the XMLHttpRequest Object;288
14.2.2;Contacts Address Book Using an Ajax Approach;291
14.3;Using Cross-Browser Libraries;296
14.4;Other Ajax Frameworks and Toolkits;299
14.4.1;Backbase;299
14.4.2;Bindows;299
14.4.3;Dojo;299
14.4.4;Interactive Website Framework;299
14.4.5;qooxdoo;299
14.5;Criticisms of Ajax;300
14.5.1;Providing Visual Cues;300
14.5.2;Updating the Interface;300
14.5.3;Preloading Data;301
14.5.4;Providing Links to State and Enabling the Back Button;301
14.6;Ajax Best Practices and Design Principles;301
14.6.1;Minimizing Server Traffic;302
14.6.2;Using Standard Interface Methods;302
14.6.3;Using Wrappers or Libraries;302
14.6.4;Using Ajax Appropriately;302
14.7;Summary;302
15;Chapter 10 Using Flash to Display XML;304
15.1;The XML Class;305
15.1.1;Loading an XML Document;305
15.1.2;Understanding the XML Class;308
15.1.3;Understanding the XMLNode Class;309
15.2;Loading and Displaying XML Content in Flash;312
15.2.1;Updating XML Content in Flash;316
15.2.2;Sending XML Content from Flash;320
15.3;Using the XMLConnector Component;321
15.3.1;Loading an XML Document;322
15.3.2;Data Binding;324
15.3.3;Updating XML Content with Data Components;326
15.4;Understanding Flash Security;327
15.5;Summary;327
16;Chapter 11 Introduction to Server-Side XML;328
16.1;Server-Side vs. Client-Side XML Processing;328
16.2;Server-Side Languages;329
16.2.1;.NET;330
16.2.2;PHP;332
16.3;Working Through Simple Examples;334
16.3.1;The XML Document;335
16.3.2;Transforming the XML;335
16.3.3;Adding a New DVD;342
16.3.4;Modifying an Existing DVD;350
16.3.5;Deleting a DVD;357
16.4;Summary;359
17;Chapter 12 Case Study: Using .NET for an XML Application;360
17.1;Understanding the Application;360
17.1.1;Setting Up the Environment;361
17.1.2;Understanding the Components of the News Application;363
17.2;Summary;391
18;Chapter 13 Case Study: Using PHP for an XML Application;392
18.1;Understanding the Application;392
18.1.1;Setting Up the Environment;392
18.1.2;Understanding Components of the Weather Portal Application;399
18.2;Summary;427
19;Index;428



Ihre Fragen, Wünsche oder Anmerkungen
Vorname*
Nachname*
Ihre E-Mail-Adresse*
Kundennr.
Ihre Nachricht*
Lediglich mit * gekennzeichnete Felder sind Pflichtfelder.
Wenn Sie die im Kontaktformular eingegebenen Daten durch Klick auf den nachfolgenden Button übersenden, erklären Sie sich damit einverstanden, dass wir Ihr Angaben für die Beantwortung Ihrer Anfrage verwenden. Selbstverständlich werden Ihre Daten vertraulich behandelt und nicht an Dritte weitergegeben. Sie können der Verwendung Ihrer Daten jederzeit widersprechen. Das Datenhandling bei Sack Fachmedien erklären wir Ihnen in unserer Datenschutzerklärung.