xml for begginers by ash
TRANSCRIPT
-
8/13/2019 XML for Begginers by ASH
1/51
XML
-
8/13/2019 XML for Begginers by ASH
2/51
OVERVIEW
What is XML?
Extensible Markup
Language
Many pieces in the XML
puzzle
Very fast moving Firstback to basics.
XMLSchem
a
SOA
P
Name
space
XML
XSLT
XQuery
HTM
L
XPointerXlink
-
8/13/2019 XML for Begginers by ASH
3/51
HOW THE INTERNET WORKS.
Web Clients
(Browser) Web Server
Get me that text file
OK here it is
-
8/13/2019 XML for Begginers by ASH
4/51
-
8/13/2019 XML for Begginers by ASH
5/51
WHAT IS EXTENSIBLE MARKUP LANGUAGE?
NOT a markup language
Meta-markup Language
Set of very simple rules XML provides a uniform method for
describing and exchanging structured data
Describes structure and semantics, notformatting
-
8/13/2019 XML for Begginers by ASH
6/51
French English German ..
1. Use letters of alphabet.
2. Spaces between words.
3. Read from left to write.
..
Meta Language
-
8/13/2019 XML for Begginers by ASH
7/51
SVG WML MathML ..
1. Tags must not overlap
2. Tags case-sensitive
3. Must have root tag
XML Specification
-
8/13/2019 XML for Begginers by ASH
8/51
THE XML RULES.
1. Single, unique rootelement
2. Matching open/closetags
3. Consistentcapitalisation
4. Correctly nestedelements (no
overlapping elements)5. Attribute values
enclosed in quotes
6. No repeating attributes
in an element
3Months.comWeb Development
Wakefield st
Wellington
New Zealand
Well Formed
-
8/13/2019 XML for Begginers by ASH
9/51
HEALTHCARE DATATYPES
Jones
Susan
Samantha
Jr.
Ms.
000-11-2233
Ms. Susan Samantha
Jones Jr.
-
8/13/2019 XML for Begginers by ASH
10/51
HEALTHCARE DATATYPES
000112233
SmithAmandaDr.
-
8/13/2019 XML for Begginers by ASH
11/51
HEALTHCARE SCHEMA
-
8/13/2019 XML for Begginers by ASH
12/51
12
XML IN HAKIM
There is a Lesion
with Erythematic
active edge
-
8/13/2019 XML for Begginers by ASH
13/51
13
XML IN HAKIM
Behind the scene is XML (Extensible MarkupLanguage)
Tagging is applied to content. (coded content)
-
8/13/2019 XML for Begginers by ASH
14/51
XML IN PRACTICE
XML ((FBS3. FBSCholesterol .
TagTagAttribute .
-
8/13/2019 XML for Begginers by ASH
15/51
Ahmad Alavi that is the first son of
Mohammad gholi
1389/03/02
123
-
8/13/2019 XML for Begginers by ASH
16/51
HISTORY OF XML
Standard Generalised Markup Language
Been around since early 90s
XML is a sub-set of SGML (SGML-lite) XML has smaller and simpler syntax
SGMLs development provides the
foundation for XML XML is therefore not bleeding edge
-
8/13/2019 XML for Begginers by ASH
17/51
WHY XML IS SO POWERFUL
Provides international, vendorindependent standard for describinginformation
Any informationstructured orunstructured
TCP/IP
HTTP
XML
-
8/13/2019 XML for Begginers by ASH
18/51
XML MARKUP LANGUAGES/VOCABULARIES
Remember XML is a meta-language
Anybody can create their own language
Why would you want to?
Each language designed for a specific
purpose.
-
8/13/2019 XML for Begginers by ASH
19/51
MATHEMATICAL MARKUP LANGUAGE (MATHML)
x2 + 4x + 4 =0
x2
4
x
4
-
8/13/2019 XML for Begginers by ASH
20/51
SYNCHRONIZED MULTIMEDIA INTEGRATION
LANGUAGE (SMIL)
This appears for one second and goes away
This appears after one second, remains visible for one second and goesaway
This appears after two seconds, remains visible for one second and goesaway
-
8/13/2019 XML for Begginers by ASH
21/51
VECTOR MARKUP LANGUAGE
-
8/13/2019 XML for Begginers by ASH
22/51
WIRELESS MARKUP LANGUAGE
This is the first card.
This is the second card.
-
8/13/2019 XML for Begginers by ASH
23/51
HYPERTEXT MARKUP LANGUAGE (HTML)
The Title
This is a piece of HTML
Or is it??
Next version of HTML = XHTML
-
8/13/2019 XML for Begginers by ASH
24/51
XML SCHEMAS AND DTDS
XML is about communication
Need to speak the same language
Schemas/DTDs describe the vocabulary of
the language
i.e. what tags are used and how they can be
organised
Schemas will replace DTDs
-
8/13/2019 XML for Begginers by ASH
25/51
AN EXAMPLE SCHEMA
Studend Loan Problems
20/7/01
Bla Bla Bla
-
8/13/2019 XML for Begginers by ASH
26/51
-
8/13/2019 XML for Begginers by ASH
27/51
-
8/13/2019 XML for Begginers by ASH
28/51
-
8/13/2019 XML for Begginers by ASH
29/51
AGENDA
Case study background
Choosing a DTD/Schema
Creating XMLthe options
Storing XMLthe options
Presenting XMLthe options
Solution BenefitsDemo
-
8/13/2019 XML for Begginers by ASH
30/51
CASE STUDY BACKGROUND
October 2001won contract to redevelop E-governmentwebsite (www.e-government.govt.nz)
Business requirements Usual stuff (accessible, usable etc)
Guidelines compliant (squeaky clean) Content must be made available in a standard HTML format.
Where information is provided in a proprietary format an alternativeHTML version must also be made available.
Cant just put it up as a PDF anymore
Simple publishing process
Future-proofed
Constraints Limited budget
Tight timeframe
http://www.e-government.govt.nz/http://www.e-government.govt.nz/http://www.e-government.govt.nz/http://www.e-government.govt.nz/ -
8/13/2019 XML for Begginers by ASH
31/51
TRADITIONAL OPTIONS
Static site
Did not give simple publishing process for
unskilled people
Content Management SystemStore information in RDBMS
Not good for document centric applications
Cost, timeframe, simple workflow requirements
-
8/13/2019 XML for Begginers by ASH
32/51
The challenge
To create a system that allows non-technical
authors to publish to guidelines compliant HTML
(and eventually other formats) The solution
XML
-
8/13/2019 XML for Begginers by ASH
33/51
CHOOSING A DTD/SCHEMA
Make up your own
Dont reinvent the wheel!
Xml.org
We selected a subset of DocBook
Could handle all the information we needed to
store
Supported by a growing number of products
NZETC uses TEI
-
8/13/2019 XML for Begginers by ASH
34/51
CREATING XML THE OPTIONS
Use an XML editor
E.g. XML Spy, Xmetal, Framemaker etc
Allow you to create a document that conforms to
a specified DTD/Schema
Problem: everybody potentially an author
Convert Word documents to XML
Styles
-
8/13/2019 XML for Begginers by ASH
35/51
Word(using Styles)
HTML(Internet)
Anything you want!!
eBook
DocBook
XML
XSL-T for
convertion
Word is
authoritative
source
-
8/13/2019 XML for Begginers by ASH
36/51
XCON DEMO
-
8/13/2019 XML for Begginers by ASH
37/51
STORING XML THE OPTIONS
Relational database
Native XML Repository
E.g. Excelon, Tamino, Ipedo, Xindice
First generation products
At the time too immature/expensive
On the file system
-
8/13/2019 XML for Begginers by ASH
38/51
PRESENTING XML THE OPTIONS
Publishing to humans
Need to transform XML to a format appropriate forhumans
Physical printout of scope HTML obvious choice
XSL-T to transform XML to HTML
Not the only way to present to humans SMIL, SVG, MathML etcAudience must have software
What about publishing Raw XML?
-
8/13/2019 XML for Begginers by ASH
39/51
-
8/13/2019 XML for Begginers by ASH
40/51
DEMO
-
8/13/2019 XML for Begginers by ASH
41/51
HEALTHCARE SCHEMA
-
8/13/2019 XML for Begginers by ASH
42/51
HEALTHCARE DATATYPES
Jones
Susan
Samantha
Jr.
Ms.
000-11-2233
-
8/13/2019 XML for Begginers by ASH
43/51
HEALTHCARE DATATYPES
000112233
SmithAmandaDr.
-
8/13/2019 XML for Begginers by ASH
44/51
ACTORS
xxx
Attending
Surgeon
-
8/13/2019 XML for Begginers by ASH
45/51
ENCOUNTER
-
8/13/2019 XML for Begginers by ASH
46/51
-
8/13/2019 XML for Begginers by ASH
47/51
FORMS LANGUAGE
Transform into XHTML, WML etc.
Simple enough that M.D.s can design forms
Layout performed by XSLT
Customize to site by defaults.xml
-
8/13/2019 XML for Begginers by ASH
48/51
FORM GENERATION
Form.xml
Defaults.xml
Formgen.xsl
XML + XSLT => XHTML
-
8/13/2019 XML for Begginers by ASH
49/51
WORKFLOW
Form created
Transform into ASTM XML format
XHTML editing (opnote-edit.xsl)
Sign finished product
Render as XHTML for viewing, printing
email to Medical Records and Billing
-
8/13/2019 XML for Begginers by ASH
50/51
WORKFLOW
generate
edit
sign
Billing/EDI
repository
-
8/13/2019 XML for Begginers by ASH
51/51
SUMMARY
The XML Specification = Meta-language fordescribing XML Mark-up languages
XML Schemas (and DTDs) describe thestructure of a particular XML Mark-up
language XSL-T documents transform XML document
into another format (HTML, XML etc)