Special

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 15 in printed book and digital formats -- plus a one-year subscription 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

FEATURE

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):

http://foo.net/foo.style
http://validator.w3.org
http://www.w3schools.com/Dom/dom_validate.asp
http://www.w3schools.com/DTD/dtd_validation.asp
http://xmlnanny.com
http://www.xmlfox.com
http://dev.bugtree.com
http://xmlwriter.net/xml_guide/doctype_declaration.shtml
http://en.wikipedia.org/wiki/Formal_Public_Identifier
http://en.wikipedia.org/wiki/Document_Type_Definition
http://en.wikipedia.org/wiki/Document_Type_Declaration
http://en.wikipedia.org/wiki/XML_Schema_Language_Comparison
http://en.wikipedia.org/wiki/Hash_function

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.