XML Schemas

Overview

Whether it is used for web development, creating documentation, or exchanging data between business partners, XML continues to grow in importance as a highly flexible document-design and data-modeling tool. Despite the limitations of using SGML Document Type Definitions (DTDs) to define document structures, XML has made inroads wherever data must flow among disparate platforms. The Schema specification has achieved W3C recommendation status, providing an alternative to DTDs that enables you to precisely structure...

See more details below
Available through our Marketplace sellers.
Other sellers (Paperback)
  • All (14) from $1.99   
  • New (3) from $50.00   
  • Used (11) from $1.99   
Close
Sort by
Page 1 of 1
Showing 1 – 2 of 3
Note: Marketplace items are not eligible for any BN.com coupons and promotions
$50.00
Seller since 2008

Feedback rating:

(169)

Condition:

New — never opened or used in original packaging.

Like New — packaging may have been opened. A "Like New" item is suitable to give as a gift.

Very Good — may have minor signs of wear on packaging but item works perfectly and has no damage.

Good — item is in good condition but packaging may have signs of shelf wear/aging or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Acceptable — item is in working order but may show signs of wear such as scratches or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Used — An item that has been opened and may show signs of wear. All specific defects should be noted in the Comments section associated with each item.

Refurbished — A used item that has been renewed or updated and verified to be in proper working condition. Not necessarily completed by the original manufacturer.

New
0782140459 BRAND NEW NEVER USED IN STOCK 125,000+ HAPPY CUSTOMERS SHIP EVERY DAY WITH FREE TRACKING NUMBER

Ships from: fallbrook, CA

Usually ships in 1-2 business days

  • Standard, 48 States
  • Standard (AK, HI)
$145.00
Seller since 2014

Feedback rating:

(136)

Condition: New
Brand new.

Ships from: acton, MA

Usually ships in 1-2 business days

  • Standard, 48 States
  • Standard (AK, HI)
Page 1 of 1
Showing 1 – 2 of 3
Close
Sort by
Sending request ...

Overview

Whether it is used for web development, creating documentation, or exchanging data between business partners, XML continues to grow in importance as a highly flexible document-design and data-modeling tool. Despite the limitations of using SGML Document Type Definitions (DTDs) to define document structures, XML has made inroads wherever data must flow among disparate platforms. The Schema specification has achieved W3C recommendation status, providing an alternative to DTDs that enables you to precisely structure XML data. But using the Schema Language does more than provide a more powerful way of defining data; it's also a better way because it uses XML's structure, syntax, and namespaces, instead of those derived from the complex SGML. XML Schemas introduces you to this elegant new technology, which brings the power of data modeling and data structuring to XML. A truly practical book has to give you more than just the details on syntax and semantics, examples of constructs and datatypes, and instruction in standard procedures. You get all that, but you'll also find lots of expert tips and techniques for document modeling, all reinforced with practical, real-world examples. Even as you're discovering the advantages of XML Schema, you'll learn about the continuing use of DTDs. In some situations — when designing document-oriented XML, for example — DTDs might still be the way to go. You'll learn about visual XML Schema tools, but you'll also see how setting out armed with just a text editor gives you insights you might not acquire otherwise. It won't be long before you're developing your own XML Schema documents, using the power of XML to structure data for seamless, cross-platform exchange.

Read More Show Less

Product Details

  • ISBN-13: 9780782140453
  • Publisher: Sybex, Incorporated
  • Publication date: 1/28/2002
  • Pages: 656
  • Product dimensions: 7.57 (w) x 9.02 (h) x 1.40 (d)

Meet the Author

Chelsea Valentine is a webmaster, writer, and trainer. She develops websites and teaches others how to do the same.

Lucinda Dykes is the principal at Zero G Web Design in Santa Fe, New Mexico. She has been developing websites and writing code since 1994 and teaches web-related classes at Santa Fe Community College.

Ed Tittel is a 20-year computing industry veteran who has written on XML, XHTML, and HTML in over 30 books. He also contributes XML articles regularly to www.searchmiddleware.com and www.informIT.com.

All three are coauthors of Mastering XHTML, Premium Edition, also from Sybex.

Read More Show Less

Read an Excerpt

Chapter 2: Of DTDs and Schemas

  • Understanding basic schema structure
  • Examining the basics behind DTDs
  • Comparing schemas and DTDs
  • Looking toward the future
R ecently,there ’s been a lot to say about schemas and Document Type Definitions (DTDs). As XML has moved from its document-centric roots to a more data-centric environment, the tools necessary for validation have evolved as well.DTDs,a long-standing part of the Standard Generalized Markup Language (SGML),were (and still are)quite good at defining document structure.However,because XML is being used within e-commerce applications and for business-to-business (B2B)transactions,developers quickly learned that DTDs were not equipped to handle data-centric information.

This is not to say that DTDs have outlived their usefulness;however,schemas are giving them a run for their money.As developers,we now have options for validation.Two options come from the W3C:XML Schema and XML DTDs.However,you ’re not limited to only those two options.In addition to XML Schema and XML DTDs,there are several other schema languages that are circulating throughout the XML community.Two worth noting are REgular LAnguage description for XML Next Generation (RELAX NG)and Schema- tron,which are both lightweight schema languages that offer functionality similar to the functionality XML Schema offers.Find out more about RELAX NG and Schematron in Chapter 12.

In this chapter,we focus on basic underlying concepts of XML Schema and XML DTDs. It ’s important to understand the strengths and weaknesses of both approaches before you choose the appropriate validation tool for your application.

Understanding DTD Structures and Functions

DTDs have provided structure to XML documents for a long time.Whereas flexibility is one of XML ’s primary strengths,there are instances where structure is important —even a requirement.Defining a document model provides a structure to which documents must conform.E-commerce and B2B transactions are two common scenarios that require strict document models.

There are several reasons you might want to use a validation mechanism:

  • If multiple developers will be working with the document model,the DTD would pro- vide a framework from which they can work.
  • If your document model contains required elements (such as a price for your product), DTDs allow you to define element and attribute behavior.
  • If you ’re developing a document model that will continue to evolve,a DTD could help guide that process.
DTD validation was the first solution for defining document models and is over 20 years old.DTDs have several key functions:
  • Provide a structural framework for documents
  • Define a content model for elements
  • Declare a list of allowable attributes for each element
  • Allow for limited datatyping for attribute values
  • Provide default values for attributes
  • Define a mechanism for creating reusable chunks of data,with some limitations
  • Provide a mechanism for passing non-XML data to the appropriate processor
  • Allow you to use conditional sections to mark declarations for inclusion or xclusion
In this section,we define notable DTD components.

TIP As you probably know, DTD validation is no longer the only option for defining document models. XML Schema offers a flexible solution to the preceding scenarios.

Declarations

DTDs consist of declarations that provide rules for your document model.Each declaration defines an element,set of attributes,entity,or notation.These four declaration types make up the bulk of any DTD:
element declarations Identify the names of elements and the nature of their content. DTDs do not allow for complex content model definitions.Rather,DTDs allow authors to provide information about element hierarchy.The only datatype you can define for ele- ment content is parsed character data (PCDATA ).

attribute declarations Identify which elements may have attributes,what attributes they may have,what values the attributes may hold,and what the default value is.

entity declarations Allow you to associate a name with some other fragment of content. That construct can be a chunk of regular text,a chunk of the document type declaration, or a reference to an external file containing either text or binary data.

notation declarations Identify specific types of external binary data.This information is passed to the processing application.

When defining DTD declarations,you have to follow a few rules governing the order of their occurrence.If multiple declarations exist for the same element,entity,attribute,or notation,the first one defined takes precedence (the other redundant declarations are then ignored).You also have to be careful when defining entities.Parameter entities (entities defined and used within the DTD)must be declared before they can be referenced.

The syntax used to create declarations allows for white space anywhere within the declara- tions,but there are a few delimiters that have to be written accurately (such as the exclama- tion point in !ELEMENT .The follow declarations are all correct:

<!ELEMENT book (title,author)>
<!ELEMENT book (title,author)>
<!ELEMENT book (     title,
                                                        author)>

Declarations can reside inside the XML document or can be defined as a stand-alone doc- ument.If defined as a part of an XML document,the collection of declarations is referred to as the internal subset .If the declarations are defined externally in a separate file,that file is referred to as an external subset .Many times,you ’ll find that you need to use both internal and external subsets.The collection of all subsets is known as the DTD.Listing 2.1 provides an example of a small collection of DTD declarations defined as a part of the internal DTD subset.

.Listing 2.1 An XML Document Containing an Internal DTD Subset

<?xml version=”1.0 ”?>
<!DOCTYPE publications [
<!ELEMENT publications (book+)>
<!ELEMENT book (title,author)>
<!ELEMENT title (#PCDATA)>
<!ELEMENT author (#PCDATA)>
]>
<publications>
<book>
<title>Mastering XHTML</title>
<author>Ed Tittel</author>
</book>
<book>
<title>Java Developer ’s Guide to E-Commerce with XML
and JSP</title>
<author>William Brogden</author>
</book>
</publications>

This example defines only element type declarations.In most cases,your document model would be more complex,also allowing for attributes,notations,and entities.For each ele- ment,there ’s a corresponding content model defined.For example,the book element is allowed to contain only a title element followed by an author element.

Internal Subset
Internal subsets are handy if you plan to import declarations from external DTD subsets. This is because you can override externally defined declarations by defining a new declaration in the internal subset.The declaration found first (the XML parser reads the internal subset before the external)takes precedence.

There are a couple of restrictions placed on internal subsets:

  • You cannot use conditional sections to mark the inclusion or exclusion of DTD declara- tions.Conditional sections make it easier to combine DTD subsets,therefore allowing you to modularize your DTD.
  • Your parameter entity usage is limited.According to the XML 1.0 Specification,you can- not define and use a parameter entity within another declaration.
Listing 2.2 provides an example of an internal subset....
External Subset
An internal subset allows you to override externally defined declarations or to add new ele- ments or attributes to a specific document.Other than that,you ’ll likely be working with external DTD subsets.More times than not,a common vocabulary will be defined using an external DTD subset.For example,the Extensible Hypertext Markup Language (XHTML),Scalable Vector Graphics (SVG),and the Synchronized Multimedia Integration Language (SMIL)all have externally defined DTDs.Every document that adheres to the defined model just has to include a DOCTYPE declaration that points to the external DTD subset.Separating the grammar rules from the data keeps your file sizes manageable. Listing 2.3 highlights an XML document that references an external DTD subset....
Read More Show Less

Table of Contents

Introduction
Ch. 1 Introducing Metadata 1
Ch. 2 Of DTDs and Schemas 23
Ch. 3 The Document Design Process 47
Ch. 4 The Role of DTDs in XML 77
Ch. 5 Understanding XML Schema 111
Ch. 6 Understanding Schemas: Structures and Components 159
Ch. 7 Understanding Schema Datatypes 213
Ch. 8 Designing XML Schema Documents 269
Ch. 9 Converting DTDs to Schemas 301
Ch. 10 Important XML Schemas 339
Ch. 11 Using Appropriate Metadata 361
Ch. 12 Other Schema Languages 383
Ch. 13 Schema-Based Initiatives 439
Ch. 14 Schema and Related Tools 475
App. A: Important Specifications and Standards 501
App. B DTD for XML Schema: Structures 507
App. C XML Schema Components and Datatypes 517
Glossary 585
Resources 597
Index 603
Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)