Article Preview
Buy Now
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:
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
andUx003e
). 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.