Title: An Introduction to XML Rahman Mokhtar a'r'mokhtarlivjm'ac'uk
1An Introduction to XMLRahman Mokhtar
(a.r.mokhtar_at_livjm.ac.uk)
- What is data?, what is information?, what is
knowledge? - How do we represent information?
- About markups
- procedural
- generic coding
- generalised
- SGML
- HTML
- XML
2Who would benefit from XML?
3Example Applications?
XML extensible structure (i.e.
independent of presentation) validation
ltprincess countryUKgt Diana lt/princessgt
ltphysics photokoolgt Einstein lt!CDATAE
mc2gt lt/physicsgt
ltprice currencyUK scaleMgt 1 lt/pricegt
Multi-purpose (Multimedia) Publishing
Information storage, sorting, retrieval.
Agent A
Agent B
Business A
Business B
E-commerce Intelligent Agents digital
negotiations transactions
4XML Document and DTD
Well-formedness (against XML syntax) Validation
(against DTD) Parser
5XML Processing Examples of Companion Standards
- XML Document/DTD/Parser
- DOM (access to document objects)
- Script/Programming (manipulation of objects)
- XSL (render ready transformation)
- Browser/Display Application
- (renderer)
6XML Syntax
DTD Syntax
- Elements nesting
- Attributes
- XML document
- Comments
- Unicode
- CDATA
- Namespace
- Processing Instructions
- Elements declaration
- Content model
- Attribute declaration
- Entities
- - general/parameter
- - internal/external
- - parsed/unparsed
- Notations
gt Parser sees meaningless element names gt
Parser differentiates parent-child structure gt
Application provides semantics
7Rendering via XSL Transformation
- XML Stylesheet Language, XSL
- an XML application
- (provides presentation semantics)
- template-driven model
- data-driven model
- sorting and conditional
- transformation
- XSL element names
- (transformation functions)