View today's PowerPoint Presentation
LEARN XML
In-class excercise:
XML Terminology
- XSLT (the eXtensible Stylesheet Language Transformations) is the recommended style sheet language of XML but CSS can also be used for presentation.
- DTD (Document Type Definition) defines the legal building blocks of an XML document. It defines the document structure with a list of legal elements and attributes.
- Elements are the main building blocks of both XML and HTML documents. In html, "body" and "table" are examples
- Entities are variables used to define shortcuts to standard text or special characters. It has three parts: an ampersand (&), an entity name, and a semicolon (;). In HTML, is an example.
- CDATA (Character Data) Tags inside the text will NOT be treated as markup and entities will not be expanded.
- PCDATA (Parsed Character Data) The text will be examined by the parser for entities and markup.
- XML Schema is an XML-based alternative to DTD.
Linked DTD example: Sample XML
Sample DTD
Sample CSS
Embedded DTD example: Pet World XML
Pet World CSS
Homework:
- AIM: Assignment 5 - Create an XML File with a DTD and style it with a CSS.
Unformatted XML Menu
- Project 2 Mock-up
- Study for Midterm Exam
Return to Home Page