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 14 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

PDF:

Feature

Starting with Styles

Exploring XML DTD stylesheets

Issue: 8.3 (March/April 2010)
Author: JC Cruz
Article Description: No description available.
Article Length (in bytes): 29,744
Starting Page Number: 33
RBD Number: 8311
Resource File(s): None
Related Web Link(s):

anarakisware-at-gmail.com
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

Known Limitations: None

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.

Another aspect of a good document is that it must be valid. To achieve this, the document declares its tags and attributes beforehand. It knows the order that its tags appear, as well the data they held. The document also knows the value held by each tag attribute and which attribute is optional. And it declares any entities used by its tags or attributes.

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

Article copyrighted by REALbasic Developer magazine. All rights reserved.


 


|

 


Weblog Commenting and Trackback by HaloScan.com