Home > Store

Structuring XML Documents

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

Structuring XML Documents

  • By
  • Published Mar 19, 1998 by Pearson.

Book

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

Description

  • Copyright 1998
  • Dimensions: 7 X 9-1/4
  • Pages: 480
  • Edition: 1st
  • Book
  • ISBN-10: 0-13-642299-3
  • ISBN-13: 978-0-13-642299-0


64229-8

Real XML help for webmasters, developers, and publishing professionals!

Structuring XML Documents is the perfect book for you, if...

  • You're tired of toy exercises and are ready to build XML/SGML DTDs for real-world document systems .
  • You need to write DTDs that work both for your authors and for your computer specialists.
  • You're starting with XML and want to make the most of it.
  • You're migrating from SGML to XML - or thinking about it.

In this book, David Megginson shares his extensive expertise in quality structured document design and DTD development. Starting with five detailed industry-standard models, learn how to:

  • Analyze DTDs and adapt them for your specific needs
  • Build DTDs that are easier to learn, use, and process
  • Ensure structural compatibility throughout your DTDs
  • Use the new Architectural Forms standard to simplify complex DTD problems.

Whether you're a technical writer, documentation project manager, document systems implementor, or consultant, you'll refer to this book constantly.

On the CD-ROM...All these state-of-the-art model DTDs-pre-catalogued for plug-and-play parsing...

  • ISO 12083 DTDs
  • DocBook 3.0 DTD with documentation
  • TEI P3 and TEI-Lite 1.6 DTDs
  • MIL-STD-38784 DTD with Official Navy Baseline Tagset Library
  • HTML 4.0

Plus...

  • Ælfred-a small, fast, DTD-aware Java(tm)-based XML parser, especially suitable for use in Java applets
  • SP/NSGMLS parser - source code and Windows binaries, for XML and SGML parsing and validating
  • ISO character entity sets - a Web page indexing all the CD's contents, and including links to all the URLs cited in the book-sites where you can find the most up-to-date information on XML and SGML and more.

Sample Content

Table of Contents



Introduction.


XML and SGML.


The Book’s Structure.


Notations and Conventions.


Presentation of Examples.


Typographical Conventions.


Figures.

I. BACKGROUND.

1. Review of DTD Syntax.

Document Type Declaration. Elements. Attributes. Entities. Notations. Conditional Sections. Processing Instructions.

2. Model DTDs.

Reading About the Model DTDs. A Note About Using Industry-Standard DTDs. The Five Model DTDs.

II. PRINCIPLES OF DTD ANALYSIS.

3. Ease of Learning.

DTD Size. DTD Consistency. DTD Intuitiveness.

4. Ease of Use.

Physical Effort. Choice. Flexibility.

5. Ease of Processing.

Predictability. Context. DTD Analysis: Final Considerations.

III. ADVANCE ISSUES IN DTD MAINTENANCE AND DESIGN.

6. DTD Compatibility.

Structural Compatibility. Lexical Compatibility.

7. Exchanging Document Fragments.

Editing Fragments as Stand-Alone Documents. Reparenting in a Dummy Document. Using Subdocuments.

8. DTD Customization.

Types of Customization. Extension Mechanisms in the Model DTDs.

IV. DTD DESIGN WITH ARCHITECTURAL FORMS.

9. Architectural Forms: Concepts.

Meta-DTDs. Documents. Practical Uses of Architectural Forms. Summary of Terminology.

10. Basic Architectural Forms Syntax.

Setup and Configuration. Basic Forms.

11. Advanced Architectural Forms Syntax.

Automatic Derivation. Suppressing Architectural Processing. Architectural Attribute Values. Default Architectural Information. Meta-DTDs.

V. BACK MATTER.

Model DTDs: Index of Element Types and Attributes.
General Index.
About the CD-ROM.

Preface

Introduction

I have written this book to help you use XML and SGML to solve your document-structuring problems.
The book is a result of my experience with and opinions about document structure after seven years work with SGML (and more recently, XML), first as an academic and later as a professional document-management consultant and systems architect.

While XML and SGML DTDs provide a convenient syntax for defining a document's structure, most of the principles of document design and analysis covered in this book are not specific to any syntax. Though the book necessarily deals with some of the idiosyncracies of XML and SGML DTDs and uses XML syntax in its examples, it deals with issues such as learning, usability, and ease of processingÑthat all document designers and analysts must understand, whether or not they use XML or SGML and whether they use DTD syntax or other notations to define their structures.

By itself, this book is not a general introduction to XML, SGML, or DTD syntax: I am assuming that you already know how to create markup in a document and how to write basic DTDs (though there is a review of DTD syntax in Chapter 1 if you're a little rusty). If you are entirely new to XML, you should start with a beginner's guide or with online resources such as the ones listed on the SGML/XML Web Page .

This book concentrates on book-oriented DTDs, for applications such as technical manuals, literary texts, newspapers, magazines, advertisements, correspondence, regulations, legislation, and other material meant to be read by people rather than (or as well as) by machines. Both XML and SGML DTDs are also capable of modelling many other types of information, including commercial transactions and other types of data exchange; many of the principles described in this book can apply to database-oriented DTDs as well, but the book does not discuss that type of DTD explicitly.

In this book, I am also assuming that you already know how to collect information about the business problems you need to solve. You have to know about how people will create and process documents using your DTDs and about the projects that they will be working on.
For this book, I have divided the people you have to know about into two groups:
1. the authors, who create documents 2. the information-processing specialists, who design software to process the documents in various ways

This division is, of course, an oversimplification (there are also editors, proofreaders, fact-checkers, etc., not to mention the end users of the information), but it is a useful one for developing a methodology for DTD analysis. When I want to refer to both authors and information-processing specialists together, I simply use the term DTD users.
It is essential that you know your users' requirements, because there are few absolute rights and wrongs in document analysis design: your goal is not to come up with an abstract, ideal DTD, but rather to come up with the best practical fit for your users. In fact, as I explain in Part Two starting on page 84, often you will have to make sacrifices in one area to meet your users' needs in another. Learning how to collect this information is an important skill in itself, as is learning to document your work if you are interested in reading about good SGML (and XML) business practices, you might want to take a look at Developing SGML DTDs: From Text Model to Markup (Prentice-Hall) or any of the many software-engineering textbooks currently available.

From the perspective of document analysis and design, there are very few differences between XML and full SGML. XML DTDs can describe almost any structure that full SGML DTDs can describe (though they will sometimes present information differently); the following are the only major types of SGML structure that XML DTDs are incapable of modeling:
1. XML DTDs cannot model inclusion exceptions or exclusion exceptions 2. XML DTDs cannot model unordered content 3. XML DTDs cannot model arbitrary mixed content (only an optional and repeatable OR group is allowed).

Even when you are writing DTDs in full SGML, however, you should use inclusion and exclusion exceptions sparingly, you should usually avoid unordered content, and you should always avoid dangerous types of mixed content.
The Book's Structure
There are four parts to this book:
In Part One, you can read about the five industry-standard DTDs that this book uses as models and refresh your knowledge of XML (and SGML) DTD syntax
In Part Two, you can read about how to analyze DTDs to see if they match your specific needs this part contains many examples from the five model DTDs
In Part Three, you can read about advanced topics like document disassembly and reassembly, configurable documents, DTD compatibility, and DTD customization
In Part Four, you can learn about the important new standard for architectural forms, and see how to use them to produce simple solutions to complicated DTD problems
Notations and Conventions SGML Note: XML documents are SGML documents; however, in full SGML you can use some additional facilities that are not available in XML.
Throughout the book, I include text like this whenever I think that you need to know about a difference between full SGML and XML or whenever I want to give you some extra SGML information.

Presentation of Examples For the sake of consistency and readability, I present examples in the book (both DTD and document excerpts) using XML syntax whenever possible, even when the examples come from an SGML original. I also normalize whitespace and presentation, but preserve the name case of the original declarations.
For example, the following element type declaration appears in TEI-Lite: Original SGML declaration


Unless I am discussing SGML-specific syntax, I remove both the omitted tag minimization and the exclusion exception from the example. In this case, I also rearrange the presentation of the content model to conform to the XML constraints on mixed content:
Normalized XML-compatible declaration

Except for the absence of the exclusion exception, this is an equivalent content model; since the declaration is expressed in the subset of SGML syntax allowed by XML, however, both XML- and SGML-experienced readers should be able to read and understand it.

Typographical Conventions
When you are reading this book, you will notice different typefaces for some types of information:
nsample term
This is a specialized term at the point in the text where I define it.
nlogical unit
This is the first reference in a chapter or section to a specialized term.
nsymbol/filename/code
I use this typeface to refer to text in an example DTD or document instance (such as the SGML name of an element type, entity, attribute, notation, or document type) or to the name of a file.
Figures
Figure Intro--1 Legend for Figures--The figures in the book provide graphic representations of DTD and document instance structures.

For some examples, the book provides figures to illustrate DTD or document constructions. For an explanation of the symbols that appear in the figures, see Figure Intro-1.

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