XML Training Course - PowerPoint PPT Presentation

1 / 15
About This Presentation
Title:

XML Training Course

Description:

Raw XML files can be viewed in IE 5.0 (and higher) and in Netscape 6, but to ... ARTIST Bob Dylan /ARTIST COUNTRY USA /COUNTRY COMPANY Columbia /COMPANY ... – PowerPoint PPT presentation

Number of Views:59
Avg rating:3.0/5.0
Slides: 16
Provided by: Bowm
Category:
Tags: xml | bob | course | dylan | training

less

Transcript and Presenter's Notes

Title: XML Training Course


1
XML Training Course
  • Module 5 Working with XML

2
What to expect this Session
  • Viewing XML with CSS
  • Viewing XML using XSL
  • Viewing XML by embedding it into HTML

3
Viewing XML
  • Raw XML files can be viewed in IE 5.0 (and
    higher) and in Netscape 6, but to make it display
    like a web page, you have to add some display
    information.

4
Example Using CSS to view XML
  • XML Samples\cd_catalog.xml
  • CSS Samples\cd_catalog.css
  • XML Combined with CSS
  • Samples\cd_catalog_with_css.xml

5
Using CSS to view XML
  • href"cd_catalog.css"?
  • Empire Burlesque
  • Bob Dylan
  • USA
  • Columbia
  • 10.90
  • 1985
  • . . . .

6
Using XSL to add display information
  • XSL (eXtensible Stylesheet Language) is the
    preferred display language of XML
  • XML Samples\Menu.xml
  • XSL Samples\menu.xsl
  • XML w/ XSL Samples\menu_with_xsl.xml

7
Using XSL to add display information
  • href"simple.xsl"?
  • Belgian Waffles
  • 5.95
  • two of our famous Belgian Waffles
  • 650

8
XSL
  • Consists of three parts
  • XSLT (a language for transforming XML documents)
  • XPath (a language for defining parts of an XML
    document)
  • XSL Formatting Objects (a vocabulary for
    formatting XML documents)

9
What can XSL do?
  • Transform XML into XHTML
  • Filter and Sort XML data
  • Format XML data based on data value
  • Output XML data to different devices

10
Embedding XML in HTML
  • The unofficial tag is used to embed XML
    data within HTML.
  • Note that the tag is an HTML element, not
    an XML element.

11
Method 1
  • Tove
  • Jani
  • Reminder
  • Don't forget me this weekend!

12
Method 2

13
Binding the XML to HTML
  • Once the XML is embedded, you must bind into to
    an HTML element to use/display it.
  • Example

14
Review this Session
  • Viewing XML with CSS
  • Viewing XML using XSL
  • Viewing XML by embedding it into HTML

15
Display XML
Write a Comment
User Comments (0)
About PowerShow.com