XML Extensible Markup Language - PowerPoint PPT Presentation

1 / 9
About This Presentation
Title:

XML Extensible Markup Language

Description:

... 'Davolio' FirstName='Nancy' Title='Sales Representative' TitleOfCourtesy ... Output Format: FOR XML AUTO. XSL tranformation: &xsl ... – PowerPoint PPT presentation

Number of Views:37
Avg rating:3.0/5.0
Slides: 10
Provided by: ahmed90
Category:

less

Transcript and Presenter's Notes

Title: XML Extensible Markup Language


1
XMLExtensible Markup Language
  • Standard supported by W3C
  • (World Wide Web Consortium)
  • HTML End user oriented (presentation)
  • XML Application oriented (shared data)
  • XML has no predefined set of tags.
  • The application determine tags meaning.

2
XML
Attributes Name
  • lt?xml version"1.0" encoding"utf-8" ?gt
  • ltrootgt
  • ltEmployees EmployeeID"1" LastName"Davolio"
    FirstName"Nancy" Title"Sales Representative"
    TitleOfCourtesy"Ms." BirthDate"1948-12-08T000
    000" HireDate"1992-05-01T000000"
    Address"507 - 20th Ave. E. Apt. 2A"
    City"Seattle/gt
  • ltEmployees EmployeeID"2" LastName"Fuller"
    FirstName"Andrew" Title"Vice President,
    Sales" TitleOfCourtesy"Dr." BirthDate"1952-02-
    19T000000" HireDate"1992-08-14T000000"
    Address"908 W. Capital Way" City"Tacoma"/gt
  • ltlt/rootgt

Attribute Value
Record Type
3
XSLExtensible Stylesheet Language
Language used to describe how an XML source
document is transformed.
IIS
XML
HTML
Parser
Internet
XSL
Rules
Rules
Rules
Rules
4
XSL
Transform all records...
  • ltxslstylesheet version"1.0"gt
  • ltxsltemplate match""gt
  • ltxsltemplate match"Employees"gt
  • ltxsltemplate match"/"gt
  • lt/xslstylesheet

... Identified with TAG Employees...
...begining at document root
5
XSL
Set title color...
  • ltxslstylesheet version"1.0"gt
  • ltxsltemplate match""gt
  • ltxsltemplate match"Employees"gt
  • ltxsltemplate match"/"gt
  • lt/xsltemplategt
  • lt/xslstylesheet

Create table title...
ltHTMLgt lt/HTMLgt
ltHEADgt ltSTYLEgtcolorCCCCCC lt/STYLEgt lt/HEADgt
Recursion...
ltBODYgt lt/BODYgt
ltTABLE border"1" style"width300"gt ltTRgtltTH
colspan"2"gtEmployeeslt/THgtlt/TRgt ltTRgtltTHgtFirst
namelt/THgtltTHgtLast namelt/THgtlt/TRgt
ltxslapply-templates select"root" /gt lt/TABLEgt
6
XSL
For each record...
  • ltxslstylesheet version"1.0"gt
  • lt?xml version"1.0" encoding"UTF-8" ?gt
  • ltxsltemplate match""gt
  • ltxsltemplate match"Employees"gt
  • ltTRgt
  • ltTDgt
  • ltxslvalue-of select"_at_FirstName" /gt
  • lt/TDgt
  • ltTDgt
  • ltxslvalue-of select"_at_LastName" /gt
  • lt/TDgt
  • lt/TRgt
  • lt/xsltemplategt
  • ltxsltemplate match"/"gt
  • lt/xslstylesheet

Create one Table Row ltTRgt with First Name and
Last Name
7
HTML
8
URL Access
Example
http//IIServer/northwind?sql....FORXMLAUTOx
sl....
  • Protocol http
  • Server IIServer
  • Database northwind
  • SQL Statement SELECT FROM employees
  • Output Format FORXMLAUTO
  • XSL tranformation xsl....

9
Java Applet
  • 1. Portable
  • 2. Embedded into web-pages.
  • Easy navigation and distribution
  • 3. Uses Java XML parser to exract information or
    specify XSL transformations for display.
  • Processing capabilities
  • Different presentations
  • http//cimic.rutgers.edu/ahgomaa/XMLapplet.htm
Write a Comment
User Comments (0)
About PowerShow.com