|
wl410-ver3.2
Introduction to XML (3 days)
Description
This courseware training guide book will provide an in-depth look at the eXtensible Markup Language (XML) and why it is so dominant in modern applications. Students will learn how to create and parse XML documents, validate documents with Document Type Definitions (DTDs), and transform documents using the eXtensible Stylesheet Language (XSL) and Cascading Style Sheets (CSS).
Suggested Prerequisites
• XHTML and Cascading Style Sheets
Next Courses• Advanced XML and XSL
• Fundamentals of ASP.NET using VB.NET and C#
• Integrating JSP and XML
Objectives• Understand the role of XML in modern applications
• Create well-formed XML documents
• Create internal and external DTDs
• Master the XML Schema syntax
• Create both CSS and XSL stylesheets
• Understand XML name spaces
• Build data-driven XML applications
Course OutlineIntroduction to XML • Overview • The Development of XML • Why XML?
XML and Browser Compatibility • Microsoft and XML Extensions • Why Use a Browser to Display XML?
Examining an XML Application • The Components of an XML Application • Completing an HTML “Wrapper”
XML Syntax • XML Logical Structure • XML Physical Structure • XML Logic: Designing Datasheets • Building a well-formed XML document from text data • XML Attributes Revisited • Why Use Attributes? • An Introduction to Our Demo Application • Adding attributes to your XML Datasheet
Document Type Definitions (DTDs) • Example: A Basic DTD • Validating Against your DTDs • Adding an Internal DTD to your XML Datasheet • External DTDs • Public vs. System DTDs • Creating an External DTD, and linking it to your XML Datasheet
XML Namespaces
XML Schemas • Referencing An XML Schema • The “xsi” Namespace • An XML Schema Document • Beginning a Schema Document • Mixed Content • Validating Against A Schema • Beginning an XML Schema Document • Declaring Attributes • Adding Attributes to Your Schema • Using References to Simplify Your Schema • Restricting Content with Schemas • Specifying Default Values • Restricting the Content of Elements and Attributes
Using Cascading Style Sheets (CSS) to Present XML Data • A Brief Review of CSS Rules • Displaying XML Data with a CSS Stylesheet
Extensible Stylesheet Language (XSL) • XSL, XSLT, and XSLFO • XSL Basics: Linking to an XSL Stylesheet • Examining an XSL Stylesheet • Beginning an XSL Stylesheet • xsl:apply-templates and Iterative Content • XPath: the XSL Node Matching Syntax • Displaying Iterative Data with Your XSL Stylesheet • Using xsl:sort to re-sort your display • Adding a Sort Order to your XSL • Generating Hyperlinks with XSL • Loops with XSL • Adding an xsl:for-each Loop to Your Stylesheet
Displaying Complex Structures with XSL • Building an HTML Table with XSL
Conditional Logic in XSL • xsl:if For Conditional Output • Multi-Option Branching with xsl:choose, xsl:when, and xsl:otherwise • Conditional Operators in XSL • Using XSL Conditionals to Identify Oscar-Winners
XPath Expressions and XSL Functions • XPath Expressions and Filters • Using XPath Filtering Expressions • Aggregate Functions • Adding Aggregate Functions to your Stylesheet • Data Conversion, Calculations, and Variables • Variables in XSL and the xsl:variable Tag • Translating Meters to Feet Using XSL • Calculations and Number Formatting Functions • Using XSL Calculations to Produce Feet and Inches
Building the HTML Front End to XML Data • Data Islands and the HTML tag • Creating an HTML Wrapper for your Movie List Application
Dynamic XSL Changes • Using XSL Updating to Re-Sort XML Data
Using XSL to Produce New XML • Producing a datasheet organized by film rather than by actor
Incorporating CSS with XSL
The XML DOM • Partial Searches with JavaScript • Accessing the XML DOM Tree with JavaScript • Building a Tree Display of your XML Content
|
|
|
|