Beruflich Dokumente
Kultur Dokumente
OVERVIEW
What is XML? Extensible Markup Language Many pieces in the XML puzzle Very fast moving First back to basics.
Xlink
XPointer HTM L
XSLT
XQuery
XML
XML Schem a
SOA P
Name space
Web Server
Meta Language
1. Use letters of alphabet. 2. Spaces between words. 3. Read from left to write. ..
French
English
German
..
XML Specification
1. Tags must not overlap 2. Tags case-sensitive 3. Must have root tag
SVG
WML
MathML
..
5.
6.
Single, unique root element Matching open/close tags Consistent capitalisation Correctly nested elements (no overlapping elements) Attribute values enclosed in quotes No repeating attributes in an element
</address>
</company>
Well Formed
HEALTHCARE DATATYPES
<person>
<person.name>
HEALTHCARE DATATYPES
<patient>
</patient> <provider>
<person.name><family>Smith</family><given>Amanda</given><pre fix>Dr.</prefix></person.name>
</provider>
HEALTHCARE SCHEMA
XML IN HAKIM
12
XML IN HAKIM
13
XML IN PRACTICE
XML 3 ()FBS . FBS Cholesterol .
Tag Tag Attribute .
<List> <patient>Ahmad Alavi that is the first son of Mohammad gholi <Admission> <Date>1389/03/02</Date> <FBS>123</FBS> </Admission>
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
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.
AN EXAMPLE SCHEMA
<?xml version="1.0" encoding="UTF-8"?> <PressRelease> <Title>Studend Loan Problems</Title>
<Date>20/7/01</Date>
<Content>Bla Bla Bla</Content> </PressRelease>
<?xml version="1.0" encoding="UTF-8"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> <xsd:element name="PressRelease"> <xsd:complexType> <xsd:sequence> <xsd:element name="Title" type="xsd:string"/> <xsd:element name="Date" type="xsd:date"/> <xsd:element name="Content" type="xsd:string"/> <xsd:element name="Author" type="xsd:string" minOccurs="0"/> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:schema>
INTRODUCING XSL-T
Extensible Stylesheet Language Standard ratified this year by W3C Way of transforming an XML document into another document
TRANSFORMATION
XML document
XSLT Processor
HTML
XML
AGENDA
Case study background Choosing a DTD/Schema Creating XML the options Storing XML the options Presenting XML the options Solution Benefits Demo
October 2001 won contract to redevelop E-government website (www.e-government.govt.nz) Business requirements
Content must be made available in a standard HTML format. Where information is provided in a proprietary format an alternative HTML version must also be made available. Cant just put it up as a PDF anymore
Constraints
TRADITIONAL OPTIONS
Static site
Did
information in RDBMS Not good for document centric applications Cost, timeframe, simple workflow requirements
The challenge
To
create a system that allows non-technical authors to publish to guidelines compliant HTML (and eventually other formats)
The solution
XML
CHOOSING A DTD/SCHEMA
Make up your own Dont reinvent the wheel! Xml.org We selected a subset of DocBook
Could
XML Spy, Xmetal, Framemaker etc Allow you to create a document that conforms to a specified DTD/Schema Problem: everybody potentially an author
HTML
(Internet)
Word
(using Styles)
DocBook XML
eBook
XCON DEMO
E.g.
Excelon, Tamino, Ipedo, Xindice First generation products At the time too immature/expensive
Publishing to humans Need to transform XML to a format appropriate for humans Physical print out of scope HTML obvious choice XSL-T to transform XML to HTML Not the only way to present to humans
Organisation A Website
XML document HTML document
Organisation B Website
Organisation C Website
XML document
HTML document
DEMO
HEALTHCARE SCHEMA
HEALTHCARE DATATYPES
<person>
<person.name>
HEALTHCARE DATATYPES
<patient>
</patient> <provider>
<person.name><family>Smith</family><given>Amanda</given><pre fix>Dr.</prefix></person.name>
</provider>
ACTORS
<service.actor>
<person.name></person.name>
<id>xxx</id> <type.code>Attending</type.code>
<function>Surgeon</function>
</service.actor>
ENCOUNTER
<encounter>
<patient></patient>
<provider></provider> <date.time></date.time>
<location>
</location> <encounter.id></encounter.id>
</encounter>
ISSUES
Simplicity - easier than paper Reliability Security Overcome Inertia
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
FORM GENERATION
XML + XSLT => XHTML
Form.xml
Formgen.xsl
Defaults.xml
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
WORKFLOW
generate Billing/EDI
edit
sign
repository
SUMMARY
The XML Specification = Meta-language for describing XML Mark-up languages XML Schemas (and DTDs) describe the structure of a particular XML Mark-up language XSL-T documents transform XML document into another format (HTML, XML etc)