Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 21 in printed book and digital formats -- plus a one-year subscription (beginning with 22.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview

Buy Now

Issue 8.3


Starting with Styles

Exploring XML DTD stylesheets

Issue: 8.3 (March/April 2010)
Author: JC Cruz
Author Bio: JC is a freelance technical writer living in British Columbia. He writes for various publications, pokes around with Cocoa, Python and REALbasic, and spends time with his nephew. He can be reached at: anarakisware@gmail.com
Article Description: No description available.
Article Length (in bytes): 44,146
Starting Page Number: 33
Article Number: 8311
Related Web Link(s):


Excerpt of article text...

Today, we take a close look at that most basic of style schemas: the Document Type Definition (DTD). We begin by learning the benefits of creating an XML style sheet. Then we study the parts that make up a DTD style schema. Next, we will build a DTD style sheet for an XML-based health journal. We end the article with a review of XML and DTD validation.

The Need for Style

One aspect of a good XML document is that it must be well-formed. A well-formed document uses Unicode characters to render its data and tags. Its tags follow the correct structure for each type. This means binary tags always appear in pairs and in the right hierarchy, while unary tags stand alone. Tag names appear inside two chevrons (Ux003c and Ux003e). A slash (Ux002f) marks the start of the closing tag and the end of a unary tag. Data held by a binary tag is rendered as human-readable text or encoded in Base64. And only the opening and unary tags can have attributes.

...End of Excerpt. Please purchase the magazine to read the full article.