XML:
The Basics
XML: What is it
What is XML
Why Use XML
Resources for this chapter
Visual Overview
Components of an XML Application
How It All Fits Together
Resources for
this chapter
XML: Creating Content
Quick Look
Parts of an XML Document
First Sample XML Code
Resources for
this Section
The
Syntax of XML
Basic Rules of XML Data Construction
The Root Element
Closing Tags
Shorthand for Closing Tags
Nested Tags
Quoted Attributes
Case Sensitive
Resources for this Section
The
XML Declaration
XML Declaration: What is it
Attributes of the Declaration
Resources for this Section
The
Root Element
The Root Element: What is it
Purpose of a Root Element
Syntax of the Root Element
Resources for
this Section
Creating Elements
Elements: What are they
Syntax for Creating an Element
Tags with No Content
Nesting Elements
Resources for
this Section
Attributes
Attributes: What are they
Syntax for Creating an Attribute
Multiple Attributes
Resources for this Section
Commenting Your Code
Comments: What are they
The Syntax of Comments
Restriction on Comments
Uses for Comments
Resources for this Section
Using Default Entities
Default Entities: What are they
Syntax for Using an Entity
Resources for this Section
CDATA: Unparsed Data
CDATA Section: What is it
Syntax of a CDATA Section
Uses for CDATA Sections
Resources for this Section
XML
Summary Quiz
DTD:
Document Type Definitions
DTD:
A Quick Look
DTD: What is it
Example of a DTD and its Data Source
Well Formed Data
Valid Data
Resources for this Section
Declaring the DOCTYPE
DOCTYPE: What is it
Writing the DOCTYPE declaration
Resources for this Section
Creating Elements
What Do Elements Do
Constructing an element
Element Syntax
Resources for this Section
The
Content Model
Basic Rules for Creating Content
Models
Constructing a
Content Model
Resources for this Section
Refining the Content Model
Multiple Data of the Same Type
Declaring Number of Elements
Resources for
this Section
Element Sequence
Enforcing Order
Arbitrary Order
Resources for this Section
Attributes
Attribute: What is it?
Creating an Attribute
Resources for
this Section
Attribute Keywords
Attribute Keywords
#REQUIRED Keyword
#IMPLIED Keyword
#FIXED Keyword
Resources for this Section
Attribute Types
Data Typing
CDATA Keyword
Enumerated
Keyword
NMTOKEN Keyword
NMTOKENS Keyword
ID Keyword
IDREF Keyword
Resources for this Section
|
Entities
ENTITY: What is it?
The Three Kinds of Entities
Predefined Entities
General Entity
General ENTITY
Using a General Entity
Using an External
General Entity
Resources for this Section
Parameter Entity
Parameter ENTITY
External DTDs
Creating a Parameter ENTITY
Using a Parameter ENTITY
Resources for
this Section
Schemas:
Defining Data Structures
Schema: What is it
How is it different from a DTD
Complex and Simple Types
First Sample of a
Schema
Resources for this Session
Creating a Skeleton
Schema File Skeleton
'schema' Element
Locating the Schema
Resources for this section
Defining/Declaring Elements
Root Element
Creating a Datatype
Nesting Elements
Resources for this section
Validation
Validation
Validating with a Parser
Resources for this section
Simple Types
Predefined simpleType
Resources for this section
Creating Types
ComplexType vs SimpleType
Deciding between complexType and simpleType
Creating the Schema
Resources for this section
Restricting the Data
Minimum and Maximum Occuranes
User Refined simpleType
Enumerated Lists
Resources for this section
Attributes
Attributes
Defining Attributes
Deriving a ComplexType from a SimpleType
Resources
for this section
XSL:
Outputting XML
XSL:
A Quick Look
XSL: What is it
What Does It Do
Benefits of XSL
Resources for this session
Building a Template
Setting Up an XSL Document
Root Level
Template
Resources for this section
Calling the Stylesheet
The Stylesheet
Creating the Processing Instruction
Resources for this section
Choosing and Placing Data
Pulling in Data
Using xsl:value-of
Resources for
this section
Looping and Sorting
Using for-each
Sorting Data Sets
Resources for this section
Using Attributes
Attributes
Attribute Templates
Resources for this section
Conditional Processing
The 'if' Condition
Resources for this section
Template Rules
Template Rules
How Templates Works
Creating a Template Rule
Using a Template Rule
Advantages of Template Rules
Resources for this section
Xpath: An Overview
XPath: What is it
Uses of XPath
The Root Node
Current Node: Accessing Child Nodes
Current Node: Accessing Attributes Nodes
Moving Around the Tree: Abbreviated Location Paths
Predicates
Resources for this section
Xpath: Functions
XPath Functions
count() Function
sum() Function
position() Function
Resources for this section
Xpath: Expressions
XPath Expressions
Numbers
Strings
Strings: contains() Function
translate()
Function
concat() Function
Resources for
this section
|