Home > Store

Essential XML for Web Professionals

Register your product to gain access to bonus material or receive a coupon.

Essential XML for Web Professionals

Book

  • Sorry, this book is no longer in print.
Not for Sale

Description

  • Copyright 2002
  • Edition: 1st
  • Book
  • ISBN-10: 0-13-066254-2
  • ISBN-13: 978-0-13-066254-5

  • Learn XML fundamentals and build Web applications—fast!
  • Focused on the XML skills Web professionals need most
  • Learn by doing, as you work on a fictional e-commerce site
  • Up-to-the-minute coverage includes schemas, namespaces, XSLT, XLink, XPointer, XHTML, and more
  • Learn practical techniques, based on real-world scenarios

Essential XML for Web Professionals is the fastest way for busy professionals to master the XML skills needed for building dynamic, portable, and scalable applications. By completeing hands-on projects covering a wide range of development tasks, you'll master key XML technologies—including schemas, namespaces, XSLT, XLink, XHTML, and more. Start with simple examples, then work your way up to sophisticated projects. Learn practical techniques! All sample applications found in the book are downloadable from the companion Web site. You can reuse and adapt the code to see exactly how your applications should look and work!

You'll master all this, and much more!

  • Mastering XML fundamentals, structure, and syntax
  • Defining XML using DTDs and schemas
  • Using namespaces to resolve naming conflicts
  • Building XML schema utilizing complex types
  • Using XHTML to bridge HTML with XML
  • Working with XLink
  • Using CSS in XML environments
  • Linking to XML fragments with XPointer
  • Making the most of XSL Transformations (XSLT)
  • Using key XML applications: SMIL, SVG, and WDDX
  • Manipulating XML with the DOM
Rely on Essential Guides for ALL the Web Skills You Need!

All these books share the same great format, and the same dynamic Web site... so once you've used one, they're all a piece of cake!

  • Essential JSPTM for Web Professionals
  • Essential GIMP for Web Professionals
  • Essential WAPTM for Web Professionals
  • Essential ColdFusion 4.5 for Web Professionals
  • Essential CSS & DHTML for Web Professionals, 2nd edition
  • Essential Flash 5 for Web Professionals
  • Essential PHP for Web Professionals
  • Essential ASP for Web Professionals
  • Essential Design for Web Professionals
  • Essential Photoshop 6 for Web Designers
  • Essential PERL 5 for Web Programmers
  • Essential JavaScript for Web Professionals
  • with more to come!

Downloads

Downloads

Download the source code related to this title.

Sample Content

Table of Contents



Foreword.


Acknowledgments.


About the Author.


1. Introduction to XML.

What XML Is. What's a Markup Language? What's “Extensible?” Summary. What XML Is Good For. Send Anything Anywhere to Anybody. Everyone Can Understand Everything. Write Once, Display Everywhere. Free and Clear. Save the Data. A Brief History of XML. Recap.



2. Your First XML.

Overview. Elements & Nodes. Types of Elements. Empty Elements. Naming Elements. Structure & Syntax. Root Element. Closing Tags. Proper Nesting. Values Must Be in Quotation Marks. XML Version Declaration. Attributes. Rules about Attributes. Use of Attributes vs. Text Nodes. Viewing XML. Comments and the Five Special Symbols. Recap.



3. Defining XML: DTDs.

What Is a DTD? Why DTDs Are Good. Testing Your DTD. Calling an External DTD. Calling a Public DTD. Defining Elements. Advanced Element Definition (or Making Children Behave). One or More Children. Zero or More Children. Zero or One Children. Specific Number of Children. Choosing Among Children. Twins. Maybe Children, Maybe Not. Element Definition Summary. Defining Attributes. Setting Default Values. Setting and Choosing Attribute Types. Enumerated. ID. IDREF. IDREFS. NMTOKEN & NMTOKENS. Defining Entities and Notation. Predefined Entities. Shortcuts for Text. Entity Jargon. Parsed or Unparsed. General or Parameter. Internal or External. Parameter Entities. External Entities. External General Entities (for the XML). External Parameter Entities (for the DTD). Unparsed Entities and Notations. Embedding Unparsed Entities. Recap.



4. Defining XML: XML Schema.

Introduction to Namespaces. Introduction to XML Schema. Simple Types. Other Number-Based Simple Types. Date- and Time-Based Simple Types. Miscellaneous Simple Types. Creating Custom Simple Types. Forcing Text to Fit a Pattern. Limiting Numerical Values. Limiting Length of Strings. Creating Lists. Combining Simple Types. Determining an Element's Content. Reusable Custom Simple Types. Recap.



5. XML Schema: Complex Types.

Elements Containing Other Elements. Cardinality. xsd:choice. xsd:all. Defining Attributes. Attribute Uses. Attributes and Elements. Attributes and Text. Attributes, Text, and Nested Elements. Creating Custom Complex Types. Referencing Elements and Attributes. New Complex Types Based on Existing Types. Miscellaneous. Named Groups of Elements and Attributes. Groups of Elements. Groups of Attributes. Annotation and Documentation. Including External Files. Recap.



6. Namespaces.

Purpose. Syntax. Default Namespaces. What Namespaces Are. What Namespaces Are Not. Using Namespaces. Scope. Overriding a Namespace. Multiple Namespaces. Namespaces and Attributes. Namespaces and DTDs. Namespaces and Validity. Namespaces and XML Schema. Recap.



7. XLink: Creating Links in XML.

Introduction to XLink. What XLink Can Do. How XLink Is Implemented. Concepts and Terminology. Definitions. resource. link. XLink element. traverse. arc. inbound traversal. outbound traversal. third-party traversal. XLink application. simple link. extended link. linkbases. Usage. Attributes. Elements and Their Attributes. Simple Links. type. href. show. actuate. role. arcrole. What Simple Links Can't Do. Simple Links that Seem Like Errors, but Aren't. Links without a Starting Resource. Links with no href Attribute. Simple Links in a DTD. Extended-Type Elements (Extended Links). Locator-Type Elements. Extended Links and DTDs. Resource-Type Elements. Locator-Type Elements. Arc-Type Elements. Setting Several Traversals with a Single Arc. Using arcrole and Linkbases. Title-Type Elements. Simple vs. Extended Links. XLink Attributes. type. href. Semantic Attributes (title, role, arcrole). title. role. arcrole. Behavior Attributes (show, actuate). show. actuate. Traversal Attributes (label, from, to). label. from. to. Recap.



8. XHTML: Create Working Web Pages in XML Now.

Purpose. Why Bother? Modularized XHTML. What XHTML Is. User Agent Criteria. Differences from HTML. The XHTML DTDs. Recap.



9. Beginning XSLT: Xpath.

XSL Overview. XSLT. XPath Overview. How XPath Sees the World. Root Nodes. Element Nodes. Attribute Nodes. Text Nodes. Namespace Nodes. Processing Instruction Nodes. Comment Nodes. Location Paths. Unabbreviated Location Paths. Parts of Location Paths. Abbreviated Location Paths. Predicates. Unabbreviated Location Paths with Predicates. Abbreivated Predicates. Conditionals and Operators. Functions. Node-Set Functions. last(). position(). count(location_path). id("id_name"). local-name(location_path). namespace-uri(location_path). name(location_path). String Functions. string(object). concat(string1, string2, , stringn). starts-with(baseString, substring). contains(baseString, substring). substring-before(baseString, substring). substring-after(baseString, substring). substring(string, startPositon, substringLength). string-length(string). normalize-space(string). translate(baseString, startTrans, endTrans). Boolean Functions. boolean(object). not(boolean). Number Functions. number(object). sum(node-set). ceiling(number). floor(number). round(number). Recap.



10. XSLT: An Overview.

Overview of XSL. Purpose of XSLT. How XSLT Works. Instructions. Literal Elements. Root Templates. Applying Multiple Templates. Instructions. xsl:value-of. xsl:strip-space. xsl:preserve-space. xsl:sort. xsl:include. xsl:import. xsl:apply-imports. xsl:apply-templates. xsl:call-template. xsl:copy. xsl:copy-of. xsl:for-each. xsl:if. xsl:choose. xsl:when. xsl:otherwise. xsl:variable. xsl:param. xsl:with-param. xsl:decimal-format. xsl:template. xsl:namespace-alias. Creating Nodes. xsl:element. xsl:attribute. xsl:attribute-set. xsl:text. xsl:processing-instruction. xsl:number. xsl:comment. Functions. document(). format-number(). current(). unparsed-entity-uri(). generate-id(). system-property(). element-available(). function-available(). Recap.



11. XPointer: XLinking to XML Fragments.

Purpose of XPointer. What XPointer Is. ID-Type Attributes. XLink Basics. XPointer Concepts and Terminology. Points. Ranges. Location. Location-Set. Singleton. Subresource. Fragment. XPointer Basics. Full-Form XPointer. Escaping. XPointer Functions. start-point. end-point. string-range. range-to. range-inside. range. here. origin. Recap.



12. Common Examples of XML.

SMIL. Modularization. Why Bother with Modularization? Animation Modules. SplineAnimation Module. ContentControl Modules. BasicContentControl Module. CustomTestAttributes Module. PrefetchControl Module. SkipContentControl Module. Layout Modules. BasicLayout Module. AudioLayout Module. MultiWindowLayout Module. HierarchicalLayout Module. Linking Modules. LinkingAttributes Module. BasicLinking Module. ObjectLinking Module. Timing and Synchronization Module. MediaObjects Modules. BasicMedia Module. Metainformation Module. Structure Module. TimeManipulations Modules. TransitionEffects Modules. SVG. Quirks of SVG. SVG Examples. Rectangle. Circle. Paths. Text Along a Path. WDDX. Recap.



13. Manipulating XML: The DOM.

What the DOM Is and Does. Types of Nodes. DOM Interfaces. Properties and Methods. DOMImplementation. Document. Node and NodeType. NodeList. NamedNodeMap. CharacterData. Attr. Element. Text. DocumentType. Notation. Entity. ProcessingInstruction. Recap.



Appendix A: XML 1.0 Specification.

Extensible Markup Language (XML) 1.0 (Second Edition). W3C Recommendation 6 October 2000. Abstract. Status of this Document. Table of Contents. 1 Introduction. 1.1 Origin and Goals. 1.2 Terminology. 2 Documents. 2.1 Well-Formed XML Documents. 2.2 Characters. 2.3 Common Syntactic Constructs. 2.4 Character Data and Markup. 2.5 Comments. 2.6 Processing Instructions. 2.7 CDATA Sections. 2.8 Prolog and Document Type Declaration. 2.9 Standalone Document Declaration. 2.10 White Space Handling. 2.11 End-of-Line Handling. 2.12 Language Identification. 3 Logical Structures. 3.1 Start-Tags, End-Tags, and Empty-Element Tags. 3.2 Element Type Declarations. 3.3 Attribute-List Declarations. 3.4 Conditional Sections. 4 Physical Structures. 4.1 Character and Entity References. 4.2 Entity Declarations. 4.3 Parsed Entities. 4.4 XML Processor Treatment of Entities and References. 4.5 Construction of Internal Entity Replacement Text. 4.6 Predefined Entities. 4.7 Notation Declarations. 4.8 Document Entity. 5 Conformance. 5.1 Validating and Non-Validating Processors. 5.2 Using XML Processors. 6 Notation. A References. A.1 Normative References. A.2 Other References. B Character Classes. C XML and SGML (Non-Normative). D Expansion of Entity and Character References (Non-Normative). E Deterministic Content Models (Non-Normative). F Autodetection of Character Encodings (Non-Normative). F.1 Detection Without External Encoding Information. F.2 Priorities in the Presence of External Encoding Information. G W3C XML Working Group (Non-Normative). H W3C XML Core Group (Non-Normative). I Production Notes (Non-Normative).



Appendix B: XHTML DTD: Frameset.

Frameset DTD.



Appendix C: XHTML DTDs: Entities.

Special Characters DTD. Latin Characters DTD. Symbols DTD.



Appendix D: XML Tools and Software.

XML Editors. For Macs. DTD Software. XML Parsers.



Appendix E: Keeping Up to Date on XML.


Index.

Preface

Foreword

XML is being ballyhooed as the Next Big Thing, and unlike B2B or push media (remember push?), it probably is. XML is the most exciting and significant thing to hit the Internet since HTML. The good news for you is it's fairly easy to learn (easier than HTML). Microsoft and many others are adopting and developing in XML. XML has the promise to make life a good bit easier for many programmers, so learning XML is a guaranteed marketable skill for the foreseeable future. In other words, learn XML and you'll make more money and your life will be easier. I'm not kidding—I'm seeing it happen to most of the people I know.

Who This Book Is For

This book is aimed directly at Web developers, which includes both Web page authors and software developers whose applications run over the Web. You don't have to know HTML to learn XML, but it will help if you do. You don't have to know C, Java, PHP, Perl, JavaScript, or any other language. XML is a markup language, not a programming language.

What You Will Learn

This book's purpose in life is to teach you XML so that you can go out into the world and start creating working, valid XML documents. This book is designed to take a novice and turn him or her into a professional XML developer within a few days.

XML comes in many flavors, and the most popular ones are covered here, such as DTDs, XML Schema, XHTML, XSLT, XLink, XPath, SMIL, and others. Sound like alphabet soup? Don't worry—at the end of this book you'll be able to dazzle clients and supervisors alike with your intimate knowledge of such things.

The examples in the book are also available on the Web at www.wire-man.com/xml and at www.phptr.com/essential. If you have any questions, complaints, comments or feedback, I welcome them at xmldan@wire-man.com. I'd love to hear from you.

What You Will Not Learn

This book does not cover SAX, SOAP, XML-RPC, RSS, RDF, TREX, RELAX, and so on (Well, I cheated a little and covered DOM in the last chapter.)This book is also not exhaustive—the world of XML is growing exponentially, and instead of overwhelming you with a million-page tome containing every possible form of XML, my goal is to take you from being a novice to being a professional. This book is a tutorial. There's certainly some good reference material in here, but my goal is to teach you XML, first and foremost.

Updates

Submit Errata

More Information

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020